[NETFILTER]: nf_conntrack_ftp: fix newline sequence number update
authorPatrick McHardy <kaber@trash.net>
Thu, 24 May 2007 23:40:51 +0000 (16:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 May 2007 23:40:51 +0000 (16:40 -0700)
commit5fe26f53fe9e2ba5dca2835a4ca69d0ba7b5f707
tree2d506b9167f0fdf742f70427d292e9c16dcd630b
parent2e4b3b0e8734d1173c96c6f5d8a8dd6728950b56
[NETFILTER]: nf_conntrack_ftp: fix newline sequence number update

When trying to locate the oldest entry in the history of newline character
sequence numbers, the sequence number of the current entry is incorrectly
compared with the index of the oldest sequence number instead of the number
itself.

Additionally it is not made sure that the current sequence number really
is after the oldest known one.

Based on report by YU, Haitao <yuhaitao@tsinghua.org.cn>

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_ftp.c