Thread (2 messages) flat view 2 messages, 2 authors, 2012-03-05
STALE5286d

[PATCH] ipv6: fix socket multicast check

From: Alexandru Juncu <hidden>
Date: 2012-03-05 18:13:04
Subsystem: networking [general], networking [ipv4/ipv6], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, David Ahern, Ido Schimmel, Linus Torvalds

This fixes an issue where multicast packets are delivered for
sockets which didn't join any multicast groups.

The issue was discovered because Hello packets duplicates were
received in OSPFv3.

Signed-off-by: Alexandru Juncu <redacted>
Cc: Daniel Baluta <redacted>
---
 net/ipv6/mcast.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index b853f06..10cc72f 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -622,7 +622,7 @@ int inet6_mc_check(struct sock *sk, const struct in6_addr *mc_addr,
 	}
 	if (!mc) {
 		rcu_read_unlock();
-		return 1;
+		return 0;
 	}
 	read_lock(&mc->sflock);
 	psl = mc->sflist;
-- 
1.7.5.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help