mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* stray 2.4 tcp fix.
@ 2003-03-24 16:42 davej
  2003-03-24 17:55 ` Jeff Garzik
  2003-03-25  6:43 ` David S. Miller
  0 siblings, 2 replies; 3+ messages in thread
From: davej @ 2003-03-24 16:42 UTC (permalink / raw)
  To: linux-kernel

Sent to davem and netdev already, and was met with silence..

diff -urpN --exclude-from=/home/davej/.exclude bk-linus/net/ipv4/tcp.c linux-2.5/net/ipv4/tcp.c
--- bk-linus/net/ipv4/tcp.c	2003-03-21 12:53:31.000000000 +0000
+++ linux-2.5/net/ipv4/tcp.c	2003-03-21 13:45:21.000000000 +0000
@@ -1189,7 +1189,8 @@ new_segment:
 
 			from += copy;
 			copied += copy;
-			seglen -= copy;
+			if ((seglen -= copy) == 0 && iovlen == 0)
+				goto out;
 
 			if (skb->len != mss_now || (flags & MSG_OOB))
 				continue;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-25  6:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-24 16:42 stray 2.4 tcp fix davej
2003-03-24 17:55 ` Jeff Garzik
2003-03-25  6:43 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®