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)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 Apr 2012 14:29:30 +0000 (16:29 +0200)
commit6ee0b693bdb8ec56689e0d1cc533b16466fda048
tree3c473f3d7a8fad1ebf583f2a32ecd748e8d689e8
parent110c43304db6f06490961529536c362d9ac5732f
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