Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166306
b: refs/heads/master
c: 0915921
h: refs/heads/master
v: v3
  • Loading branch information
Shan Wei authored and David S. Miller committed Sep 24, 2009
1 parent 642a50a commit 84504a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b3f6af86378d0a10ca2f1ded1da124aef13b62c
refs/heads/master: 0915921bde4eb5d943b17c175febac58a254d7b6
3 changes: 3 additions & 0 deletions trunk/net/ipv4/ip_sockglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,9 @@ static int do_ip_setsockopt(struct sock *sk, int level,
* Check the arguments are allowable
*/

if (optlen < sizeof(struct in_addr))
goto e_inval;

err = -EFAULT;
if (optlen >= sizeof(struct ip_mreqn)) {
if (copy_from_user(&mreq, optval, sizeof(mreq)))
Expand Down

0 comments on commit 84504a9

Please sign in to comment.