diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2005-09-08 18:10:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-08 18:10:52 -0400 |
commit | cf0b450cd5176b68ac7d5bbe68aeae6bb6a5a4b8 (patch) | |
tree | 22ec54e42593aefd2d1a5fa07cd6a2f1b0f2f37b /net/ipv4 | |
parent | a57ebc90f1350296edded12d33d7c278831bc3bf (diff) |
[TCP]: Fix off by one in tcp_fragment() "already sent" test.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 6094db5e11be..15e1134da1b2 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -499,7 +499,7 @@ int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len, unsigned int mss | |||
499 | /* If this packet has been sent out already, we must | 499 | /* If this packet has been sent out already, we must |
500 | * adjust the various packet counters. | 500 | * adjust the various packet counters. |
501 | */ | 501 | */ |
502 | if (after(tp->snd_nxt, TCP_SKB_CB(buff)->end_seq)) { | 502 | if (!before(tp->snd_nxt, TCP_SKB_CB(buff)->end_seq)) { |
503 | int diff = old_factor - tcp_skb_pcount(skb) - | 503 | int diff = old_factor - tcp_skb_pcount(skb) - |
504 | tcp_skb_pcount(buff); | 504 | tcp_skb_pcount(buff); |
505 | 505 | ||