summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Stevens <dlstevens@us.ibm.com>2003-04-22 09:53:39 -0700
committerArnaldo Carvalho de Melo <acme@conectiva.com.br>2003-04-22 09:53:39 -0700
commitd52f4ead545f13cdf4aba817dd910787bbdb2c08 (patch)
tree01d456748b7f11fb1ce810097a90cf69a2b8ff87
parent3a3a07dedd6a3c2f3cc97aec5b347a3c3b997434 (diff)
[IGMP]: Fix bug in broadcast handling.
-rw-r--r--net/ipv4/igmp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c
index 1989420b799e..680ab028ad69 100644
--- a/net/ipv4/igmp.c
+++ b/net/ipv4/igmp.c
@@ -1991,6 +1991,9 @@ int ip_mc_sf_allow(struct sock *sk, u32 loc_addr, u32 rmt_addr, int dif)
struct ip_sf_socklist *psl;
int i;
+ if (!MULTICAST(loc_addr))
+ return 1;
+
for (pmc=inet->mc_list; pmc; pmc=pmc->next) {
if (pmc->multi.imr_multiaddr.s_addr == loc_addr &&
pmc->multi.imr_ifindex == dif)