summaryrefslogtreecommitdiffstats
path: root/sys/netinet/igmp.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-10-01 11:48:14 +0000
committerbz <bz@FreeBSD.org>2010-10-01 11:48:14 +0000
commit35c65502b901091ef76d27653bcc588fa8117194 (patch)
treea01673c14a39e165e4199cb7f36e8033dfef4d95 /sys/netinet/igmp.c
parent8f2998a3e2df49bf4675f522a5420d2a3df90940 (diff)
downloadFreeBSD-src-35c65502b901091ef76d27653bcc588fa8117194.zip
FreeBSD-src-35c65502b901091ef76d27653bcc588fa8117194.tar.gz
Proper bracketing.
PR: kern/151100 Submitted by: SunMinghao (sunminghao hotmail.com) MFC after: 3 days
Diffstat (limited to 'sys/netinet/igmp.c')
-rw-r--r--sys/netinet/igmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c
index d4c8e99..b02d30b 100644
--- a/sys/netinet/igmp.c
+++ b/sys/netinet/igmp.c
@@ -1219,8 +1219,8 @@ igmp_input_v1_report(struct ifnet *ifp, /*const*/ struct ip *ip,
if (ifp->if_flags & IFF_LOOPBACK)
return (0);
- if (!IN_MULTICAST(ntohl(igmp->igmp_group.s_addr) ||
- !in_hosteq(igmp->igmp_group, ip->ip_dst))) {
+ if (!IN_MULTICAST(ntohl(igmp->igmp_group.s_addr)) ||
+ !in_hosteq(igmp->igmp_group, ip->ip_dst)) {
IGMPSTAT_INC(igps_rcv_badreports);
return (EINVAL);
}
OpenPOWER on IntegriCloud