patch-1.3.85 linux/net/ipv4/ip_options.c
Next file: linux/net/ipv4/ip_output.c
Previous file: linux/net/ipv4/ip_input.c
Back to the patch index
Back to the overall index
-  Lines: 9
 -  Date:
Mon Apr  8 16:55:12 1996
 -  Orig file: 
v1.3.84/linux/net/ipv4/ip_options.c
 -  Orig date: 
Tue Nov 14 16:03:58 1995
 
diff -u --recursive --new-file v1.3.84/linux/net/ipv4/ip_options.c linux/net/ipv4/ip_options.c
@@ -274,7 +274,7 @@
 			continue;
 		}
 		optlen = optptr[1];
-		if (l<2 || optlen>l) 
+		if (l<2 || optlen>l || !optlen)
 		{
 			pp_ptr = optptr;
 			break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this