Add missing ntohl() in multicast test.

This commit is contained in:
mycroft 1995-06-01 15:59:04 +00:00
parent 8066369f08
commit 2eaf92b3e5
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: igmp.c,v 1.10 1995/05/31 06:08:17 mycroft Exp $ */ /* $NetBSD: igmp.c,v 1.11 1995/06/01 15:59:04 mycroft Exp $ */
/* /*
* Internet Group Management Protocol (IGMP) routines. * Internet Group Management Protocol (IGMP) routines.
@ -186,7 +186,7 @@ igmp_input(m, iphlen)
IN_NEXT_MULTI(step, inm); IN_NEXT_MULTI(step, inm);
} }
} else { } else {
if (!IN_MULTICAST(ip->ip_dst.s_addr)) { if (!IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) {
++igmpstat.igps_rcv_badqueries; ++igmpstat.igps_rcv_badqueries;
m_freem(m); m_freem(m);
return; return;