X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fipv4%2Fip_sockglue.c;h=14bbfcf717acb9d02df641231cdf30a611a43810;hb=de0c276b31538fcd56611132f20b63eae2891876;hp=5eea4a811042adaf3df8e65308c2aeeb23c845e9;hpb=863e99a8c1ea2b0391491904297f57a0f6a1fdd6;p=~andy%2Flinux diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index 5eea4a81104..14bbfcf717a 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c @@ -457,19 +457,28 @@ static int do_ip_setsockopt(struct sock *sk, int level, struct inet_sock *inet = inet_sk(sk); int val = 0, err; - if (((1<= sizeof(int)) { if (get_user(val, (int __user *) optval)) return -EFAULT;