]> err.no Git - linux-2.6/blobdiff - net/ipv6/anycast.c
[IPV4]: esp_output() misannotations
[linux-2.6] / net / ipv6 / anycast.c
index 5c4190060e754d5b3ae7702ee01df8a9dbe1bbc3..9c7f83fbc3a1d28b89bf7f26115c4d8d39f92085 100644 (file)
@@ -89,7 +89,7 @@ int ipv6_sock_ac_join(struct sock *sk, int ifindex, struct in6_addr *addr)
                return -EPERM;
        if (ipv6_addr_is_multicast(addr))
                return -EINVAL;
-       if (ipv6_chk_addr(addr, NULL, 0))
+       if (ipv6_chk_addr(&init_net, addr, NULL, 0))
                return -EINVAL;
 
        pac = sock_kmalloc(sk, sizeof(struct ipv6_ac_socklist), GFP_KERNEL);