summaryrefslogtreecommitdiffstats
path: root/net/l2tp
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-10-21 04:39:09 -0700
committerDavid S. Miller <davem@davemloft.net>2010-10-21 04:39:09 -0700
commite83726b0460f4741c8f10e1488fbcc0a9e5f0b7e (patch)
tree63708770aa5d02847ac89c4fd2cf21826a41ab36 /net/l2tp
parent612eef4f4714d5c0e7127b7b245dbfc444d14a4b (diff)
downloadblackbird-op-linux-e83726b0460f4741c8f10e1488fbcc0a9e5f0b7e.tar.gz
blackbird-op-linux-e83726b0460f4741c8f10e1488fbcc0a9e5f0b7e.zip
l2tp: small cleanup
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp')
-rw-r--r--net/l2tp/l2tp_ip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/l2tp/l2tp_ip.c b/net/l2tp/l2tp_ip.c
index 226a0ae3bcfd..1c770c0644d1 100644
--- a/net/l2tp/l2tp_ip.c
+++ b/net/l2tp/l2tp_ip.c
@@ -65,9 +65,7 @@ static struct sock *__l2tp_ip_bind_lookup(struct net *net, __be32 laddr, int dif
continue;
if ((l2tp->conn_id == tunnel_id) &&
-#ifdef CONFIG_NET_NS
- (sk->sk_net == net) &&
-#endif
+ net_eq(sock_net(sk), net) &&
!(inet->inet_rcv_saddr && inet->inet_rcv_saddr != laddr) &&
!(sk->sk_bound_dev_if && sk->sk_bound_dev_if != dif))
goto found;
OpenPOWER on IntegriCloud