diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 69b146843a20215a7c816a5b07e37788b5bf12c7..2b9bf9bd177f8353c7ab67c1b9e7bd52fd6703c8 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -405,9 +405,8 @@ static struct sock *udp_v6_mcast_next(struct sock *sk, continue; if (!ipv6_addr_any(&np->rcv_saddr)) { - if (ipv6_addr_equal(&np->rcv_saddr, loc_addr)) - return s; - continue; + if (!ipv6_addr_equal(&np->rcv_saddr, loc_addr)) + continue; } if(!inet6_mc_check(s, loc_addr, rmt_addr)) continue;