Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88272
b: refs/heads/master
c: 951e07c
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Apr 10, 2008
1 parent a76dac1 commit a58161d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 619c714c1d6e4dff00ddde582d78492fd95452d6
refs/heads/master: 951e07c930f5f66b676eaa4c32a1b0d8e2d7d06a
2 changes: 1 addition & 1 deletion trunk/net/ipv4/ip_sockglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname,
}
release_sock(sk);

if (len < sizeof(int) && len > 0 && val>=0 && val<255) {
if (len < sizeof(int) && len > 0 && val>=0 && val<=255) {
unsigned char ucval = (unsigned char)val;
len = 1;
if (put_user(len, optlen))
Expand Down

0 comments on commit a58161d

Please sign in to comment.