Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253400
b: refs/heads/master
c: 5a079c3
h: refs/heads/master
v: v3
  • Loading branch information
Marcus Meissner authored and David S. Miller committed Jun 6, 2011
1 parent 1672cd1 commit 8d83017
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 2b22b1b1e169c6591aa125525223f70e40ed4acf
refs/heads/master: 5a079c305ad4dda9708b7a29db4a8bd38e21c3a6
4 changes: 4 additions & 0 deletions trunk/net/ipv6/af_inet6.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)

if (addr_len < SIN6_LEN_RFC2133)
return -EINVAL;

if (addr->sin6_family != AF_INET6)
return -EINVAL;

addr_type = ipv6_addr_type(&addr->sin6_addr);
if ((addr_type & IPV6_ADDR_MULTICAST) && sock->type == SOCK_STREAM)
return -EINVAL;
Expand Down

0 comments on commit 8d83017

Please sign in to comment.