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

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