Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253051
b: refs/heads/master
c: d0733d2
h: refs/heads/master
i:
  253049: e1d1f57
  253047: 2ceb762
v: v3
  • Loading branch information
Marcus Meissner authored and David S. Miller committed Jun 2, 2011
1 parent 7c05232 commit d29272a
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: 948252cb9e01d65a89ecadf67be5018351eee15e
refs/heads/master: d0733d2e29b652b2e7b1438ececa732e4eed98eb
3 changes: 3 additions & 0 deletions trunk/net/ipv4/af_inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
if (addr_len < sizeof(struct sockaddr_in))
goto out;

if (addr->sin_family != AF_INET)
goto out;

chk_addr_ret = inet_addr_type(sock_net(sk), addr->sin_addr.s_addr);

/* Not specified by any standard per-se, however it breaks too
Expand Down

0 comments on commit d29272a

Please sign in to comment.