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