patch-2.0.26 linux/net/ipv4/ipmr.c

Next file: linux/net/ipv4/tcp.c
Previous file: linux/net/ipv4/ip_fragment.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.25/linux/net/ipv4/ipmr.c linux/net/ipv4/ipmr.c
@@ -542,7 +542,7 @@
 				return -EINVAL;
 			if((err=verify_area(VERIFY_READ, optval,sizeof(int)))<0)
 				return err;
-			mroute_do_pim= (optval)?1:0;
+			mroute_do_pim= get_user((int *)optval)?1:0;
 			return 0;
 		/*
 		 *	Spurious command, or MRT_VERSION which you cannot

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