]> err.no Git - linux-2.6/blobdiff - net/netfilter/nf_sockopt.c
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfashe...
[linux-2.6] / net / netfilter / nf_sockopt.c
index 3dd4b3c76d811a6545a0a26140f59ac237020ea4..01489681fa9632de60a4e070e0058696adc83087 100644 (file)
@@ -65,7 +65,7 @@ static struct nf_sockopt_ops *nf_sockopt_find(struct sock *sk, int pf,
 {
        struct nf_sockopt_ops *ops;
 
-       if (sk->sk_net != &init_net)
+       if (!net_eq(sock_net(sk), &init_net))
                return ERR_PTR(-ENOPROTOOPT);
 
        if (mutex_lock_interruptible(&nf_sockopt_mutex) != 0)