patch-2.1.10 linux/net/ipv4/route.c
Next file: linux/net/ipv4/tcp.c
Previous file: linux/net/ipv4/raw.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Thu Nov 14 18:26:17 1996
- Orig file:
v2.1.9/linux/net/ipv4/route.c
- Orig date:
Tue Oct 29 19:58:50 1996
diff -u --recursive --new-file v2.1.9/linux/net/ipv4/route.c linux/net/ipv4/route.c
@@ -1696,10 +1696,9 @@
case SIOCDELRT: /* Delete a route */
if (!suser())
return -EPERM;
- err=verify_area(VERIFY_READ, arg, sizeof(struct rtentry));
+ err = copy_from_user(&rt, arg, sizeof(struct rtentry));
if (err)
- return err;
- copy_from_user(&rt, arg, sizeof(struct rtentry));
+ return -EFAULT;
return (cmd == SIOCDELRT) ? ip_rt_kill(&rt) : ip_rt_new(&rt);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov