netfilter: nf_ct_tcp: don't scale the size of the window up twice
authorChangli Gao <xiaosuo@gmail.com>
Sun, 1 Apr 2012 17:25:06 +0000 (17:25 +0000)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 14:06:46 +0000 (19:06 +0530)
commit0fbdba8649c6dd1891c476c696097d509cec3a77
tree427aa405ccd30a5ba2a3dbc0be4959a804146483
parentb667faf6c1b4f1daacfabbf5ff8441ef0174ae9a
netfilter: nf_ct_tcp: don't scale the size of the window up twice

For a picked up connection, the window win is scaled twice: one is by the
initialization code, and the other is by the sender updating code.

I use the temporary variable swin instead of modifying the variable win.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Acked-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto_tcp.c