diff options
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r-- | net/ipv6/af_inet6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 218b8b3050a1..ac8772dd968f 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c | |||
@@ -280,7 +280,7 @@ int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) | |||
280 | /* Check if the address belongs to the host. */ | 280 | /* Check if the address belongs to the host. */ |
281 | if (addr_type == IPV6_ADDR_MAPPED) { | 281 | if (addr_type == IPV6_ADDR_MAPPED) { |
282 | v4addr = addr->sin6_addr.s6_addr32[3]; | 282 | v4addr = addr->sin6_addr.s6_addr32[3]; |
283 | if (inet_addr_type(v4addr) != RTN_LOCAL) { | 283 | if (inet_addr_type(&init_net, v4addr) != RTN_LOCAL) { |
284 | err = -EADDRNOTAVAIL; | 284 | err = -EADDRNOTAVAIL; |
285 | goto out; | 285 | goto out; |
286 | } | 286 | } |