From d52f4ead545f13cdf4aba817dd910787bbdb2c08 Mon Sep 17 00:00:00 2001 From: David Stevens Date: Tue, 22 Apr 2003 09:53:39 -0700 Subject: [PATCH] [IGMP]: Fix bug in broadcast handling. --- net/ipv4/igmp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 1989420b799e7..680ab028ad69f 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) -- 2.53.0