[IPV6]: Fix warning in ip6_mc_msfilter.
Changes
1 files changed · +1 −0
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| net/ipv6/mcast.c | modified | +1 | −0 | View file |
net/ipv6/mcast.c
View filediff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index 398c982..29fed6e 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -509,6 +509,7 @@ int ip6_mc_msfilter(struct sock *sk, struct group_filter *gsf)
return -ENODEV;
dev = idev->dev;
+ err = 0;
if (gsf->gf_fmode == MCAST_INCLUDE && gsf->gf_numsrc == 0) {
leavegroup = 1;
goto done;