l2tp: small cleanup
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
612eef4f47
commit
e83726b046
|
@ -65,9 +65,7 @@ static struct sock *__l2tp_ip_bind_lookup(struct net *net, __be32 laddr, int dif
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((l2tp->conn_id == tunnel_id) &&
|
if ((l2tp->conn_id == tunnel_id) &&
|
||||||
#ifdef CONFIG_NET_NS
|
net_eq(sock_net(sk), net) &&
|
||||||
(sk->sk_net == net) &&
|
|
||||||
#endif
|
|
||||||
!(inet->inet_rcv_saddr && inet->inet_rcv_saddr != laddr) &&
|
!(inet->inet_rcv_saddr && inet->inet_rcv_saddr != laddr) &&
|
||||||
!(sk->sk_bound_dev_if && sk->sk_bound_dev_if != dif))
|
!(sk->sk_bound_dev_if && sk->sk_bound_dev_if != dif))
|
||||||
goto found;
|
goto found;
|
||||||
|
|
Loading…
Reference in New Issue