diff options
Diffstat (limited to 'net/ipv4/ip_sockglue.c')
-rw-r--r-- | net/ipv4/ip_sockglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index d6e76f5229cc..d8adfd4972e2 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c | |||
@@ -1133,7 +1133,7 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname, | |||
1133 | } | 1133 | } |
1134 | release_sock(sk); | 1134 | release_sock(sk); |
1135 | 1135 | ||
1136 | if (len < sizeof(int) && len > 0 && val>=0 && val<255) { | 1136 | if (len < sizeof(int) && len > 0 && val>=0 && val<=255) { |
1137 | unsigned char ucval = (unsigned char)val; | 1137 | unsigned char ucval = (unsigned char)val; |
1138 | len = 1; | 1138 | len = 1; |
1139 | if (put_user(len, optlen)) | 1139 | if (put_user(len, optlen)) |