]> git.hungrycats.org Git - linux/commitdiff
[TCP]: Check correct sequence number for URG in tcp_tso_acked().
authorDavid S. Miller <davem@nuts.davemloft.net>
Thu, 30 Sep 2004 05:42:29 +0000 (22:42 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Thu, 30 Sep 2004 05:42:29 +0000 (22:42 -0700)
Noticed by Herbert Xu.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c

index d4411ba4b7194fab782af9711c1d903bcd7270e9..51ee1e5ccfba26d33bce527f58fc90f173fc20f7 100644 (file)
@@ -2410,7 +2410,7 @@ static int tcp_tso_acked(struct sock *sk, struct sk_buff *skb,
                                                        packets_acked);
                        if (sacked & TCPCB_URG) {
                                if (tp->urg_mode &&
-                                   !before(orig_seq, tp->snd_up))
+                                   !before(seq, tp->snd_up))
                                        tp->urg_mode = 0;
                        }
                } else if (*seq_rtt < 0)