Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135525
b: refs/heads/master
c: 783ed5a
h: refs/heads/master
i:
  135523: f2e5e55
v: v3
  • Loading branch information
Vlad Yasevich authored and David S. Miller committed Mar 25, 2009
1 parent 0d8885d commit 077f20a
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 4097f663cbe9e58de7ebed222f8af33267f297a8
refs/heads/master: 783ed5a78373253052bc61a3c5c8b9f17af4e3c6
7 changes: 7 additions & 0 deletions trunk/net/ipv6/af_inet6.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,13 @@ int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)

/* Check if the address belongs to the host. */
if (addr_type == IPV6_ADDR_MAPPED) {
/* Binding to v4-mapped address on a v6-only socket
* makes no sense
*/
if (np->ipv6only) {
err = -EINVAL;
goto out;
}
v4addr = addr->sin6_addr.s6_addr32[3];
if (inet_addr_type(net, v4addr) != RTN_LOCAL) {
err = -EADDRNOTAVAIL;
Expand Down

0 comments on commit 077f20a

Please sign in to comment.