patch-1.3.86 linux/net/ipv4/ip_options.c
Next file: linux/net/ipv4/ip_output.c
Previous file: linux/net/ipv4/ip_masq_irc.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Apr 8 19:28:14 1996
- Orig file:
v1.3.85/linux/net/ipv4/ip_options.c
- Orig date:
Mon Apr 8 19:01:47 1996
diff -u --recursive --new-file v1.3.85/linux/net/ipv4/ip_options.c linux/net/ipv4/ip_options.c
@@ -210,7 +210,7 @@
continue;
}
optlen = optptr[1];
- if (l<2 || optlen>l)
+ if (optlen<2 || optlen>l)
return;
if (!(*optptr & 0x80))
memset(optptr, IPOPT_NOOP, optlen);
@@ -274,7 +274,7 @@
continue;
}
optlen = optptr[1];
- if (l<2 || optlen>l || !optlen)
+ if (optlen<2 || optlen>l)
{
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