diff options
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index dd555051ec8b..4fc3387aa994 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -2013,7 +2013,9 @@ get_req: | |||
2013 | } | 2013 | } |
2014 | get_sk: | 2014 | get_sk: |
2015 | sk_nulls_for_each_from(sk, node) { | 2015 | sk_nulls_for_each_from(sk, node) { |
2016 | if (sk->sk_family == st->family && net_eq(sock_net(sk), net)) { | 2016 | if (!net_eq(sock_net(sk), net)) |
2017 | continue; | ||
2018 | if (sk->sk_family == st->family) { | ||
2017 | cur = sk; | 2019 | cur = sk; |
2018 | goto out; | 2020 | goto out; |
2019 | } | 2021 | } |