| Submitter | Pablo Neira |
|---|---|
| Date | April 10, 2012, 12:48 p.m. |
| Message ID | <1334062141-3962-2-git-send-email-pablo@netfilter.org> |
| Download | mbox | patch |
| Permalink | /patch/151539/ |
| State | Accepted |
| Headers | show |
Comments
Patch
diff --git a/net/netfilter/nf_conntrack_proto_tcp.c b/net/netfilter/nf_conntrack_proto_tcp.c index 361eade..0d07a1d 100644 --- a/net/netfilter/nf_conntrack_proto_tcp.c +++ b/net/netfilter/nf_conntrack_proto_tcp.c @@ -584,8 +584,8 @@ static bool tcp_in_window(const struct nf_conn *ct, * Let's try to use the data from the packet. */ sender->td_end = end; - win <<= sender->td_scale; - sender->td_maxwin = (win == 0 ? 1 : win); + swin = win << sender->td_scale; + sender->td_maxwin = (swin == 0 ? 1 : swin); sender->td_maxend = end + sender->td_maxwin; /* * We haven't seen traffic in the other direction yet