diff options
Diffstat (limited to 'net/ipv6/anycast.c')
-rw-r--r-- | net/ipv6/anycast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index 5c4190060e75..9c7f83fbc3a1 100644 --- a/net/ipv6/anycast.c +++ b/net/ipv6/anycast.c | |||
@@ -89,7 +89,7 @@ int ipv6_sock_ac_join(struct sock *sk, int ifindex, struct in6_addr *addr) | |||
89 | return -EPERM; | 89 | return -EPERM; |
90 | if (ipv6_addr_is_multicast(addr)) | 90 | if (ipv6_addr_is_multicast(addr)) |
91 | return -EINVAL; | 91 | return -EINVAL; |
92 | if (ipv6_chk_addr(addr, NULL, 0)) | 92 | if (ipv6_chk_addr(&init_net, addr, NULL, 0)) |
93 | return -EINVAL; | 93 | return -EINVAL; |
94 | 94 | ||
95 | pac = sock_kmalloc(sk, sizeof(struct ipv6_ac_socklist), GFP_KERNEL); | 95 | pac = sock_kmalloc(sk, sizeof(struct ipv6_ac_socklist), GFP_KERNEL); |