summaryrefslogtreecommitdiffstats
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
authorDavid L Stevens <dlstevens@us.ibm.com>2005-09-14 21:10:20 -0700
committerDavid S. Miller <davem@davemloft.net>2005-09-14 21:10:20 -0700
commit40796c5e8f2a93008e9034b3110a7e7b1fa0fba0 (patch)
tree90fa0edda1ca0786fae2c043399aa3e74d2da980 /net/ipv6/udp.c
parent87375ab47cd0ba04124c6d3fd80db5c368f5dcb6 (diff)
downloadlinux-40796c5e8f2a93008e9034b3110a7e7b1fa0fba0.tar.gz
linux-40796c5e8f2a93008e9034b3110a7e7b1fa0fba0.tar.bz2
linux-40796c5e8f2a93008e9034b3110a7e7b1fa0fba0.zip
[IPV6]: Fix per-socket multicast filtering in sk_reuse case
per-socket multicast filters were not being applied to all sockets in the case of an exact-match bound address, due to an over-exuberant "return" in the look-up code. Fix below. IPv4 does not have this problem. Thanks to Hoerdt Mickael for reporting the bug. Signed-off-by: David L Stevens <dlstevens@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r--net/ipv6/udp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 69b146843a20..2b9bf9bd177f 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;