patch-2.0.27 linux/net/ipv4/tcp.c

Next file: linux/net/ipv4/tcp_input.c
Previous file: linux/mm/mremap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.26/linux/net/ipv4/tcp.c linux/net/ipv4/tcp.c
@@ -515,7 +515,7 @@
 #endif
 	th =(struct tcphdr *)header;
 	
-	if(len<sizeof(struct tcphdr))
+	if (len < 8)	/* NOT sizeof(struct tcphdr) */
 		return;
 		
 	sk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr, 0, 0);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov