patch-2.2.19 linux/net/ipv4/ipmr.c
Next file: linux/net/ipv4/raw.c
Previous file: linux/net/ipv4/ip_sockglue.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Sun Mar 25 11:37:41 2001
- Orig file:
v2.2.18/net/ipv4/ipmr.c
- Orig date:
Sun Mar 25 11:12:46 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/net/ipv4/ipmr.c linux/net/ipv4/ipmr.c
@@ -877,6 +877,10 @@
return -EFAULT;
olr=min(olr,sizeof(int));
+
+ if(olr < 0)
+ return -EINVAL;
+
if(put_user(olr,optlen))
return -EFAULT;
if(optname==MRT_VERSION)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)