diff options
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index a98c43c0a89c..fa946829d1e8 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -1537,7 +1537,7 @@ static struct sock *udp_get_next(struct seq_file *seq, struct sock *sk) | |||
1537 | sk = sk_next(sk); | 1537 | sk = sk_next(sk); |
1538 | try_again: | 1538 | try_again: |
1539 | ; | 1539 | ; |
1540 | } while (sk && sk->sk_net != net && sk->sk_family != state->family); | 1540 | } while (sk && (sk->sk_net != net || sk->sk_family != state->family)); |
1541 | 1541 | ||
1542 | if (!sk && ++state->bucket < UDP_HTABLE_SIZE) { | 1542 | if (!sk && ++state->bucket < UDP_HTABLE_SIZE) { |
1543 | sk = sk_head(state->hashtable + state->bucket); | 1543 | sk = sk_head(state->hashtable + state->bucket); |