svn commit: r196539 - in stable/7/sys: . contrib/pf netinet6
Bjoern A. Zeeb
bz at FreeBSD.org
Tue Aug 25 13:01:51 UTC 2009
Author: bz
Date: Tue Aug 25 13:01:51 2009
New Revision: 196539
URL: http://svn.freebsd.org/changeset/base/196539
Log:
MFC r191433:
Compare protosw pointer with NULL.
Modified:
stable/7/sys/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/netinet6/ip6_input.c
Modified: stable/7/sys/netinet6/ip6_input.c
==============================================================================
--- stable/7/sys/netinet6/ip6_input.c Tue Aug 25 12:32:16 2009 (r196538)
+++ stable/7/sys/netinet6/ip6_input.c Tue Aug 25 13:01:51 2009 (r196539)
@@ -152,7 +152,7 @@ ip6_init(void)
panic("sizeof(protosw) != sizeof(ip6protosw)");
#endif
pr = (struct ip6protosw *)pffindproto(PF_INET6, IPPROTO_RAW, SOCK_RAW);
- if (pr == 0)
+ if (pr == NULL)
panic("ip6_init");
/* Initialize the entire ip6_protox[] array to IPPROTO_RAW. */
More information about the svn-src-all
mailing list