svn commit: r191433 - head/sys/netinet6

Bjoern A. Zeeb bz at FreeBSD.org
Thu Apr 23 17:41:54 UTC 2009


Author: bz
Date: Thu Apr 23 17:41:54 2009
New Revision: 191433
URL: http://svn.freebsd.org/changeset/base/191433

Log:
  Compare protosw pointer with NULL.
  
  MFC after:	1 month

Modified:
  head/sys/netinet6/ip6_input.c

Modified: head/sys/netinet6/ip6_input.c
==============================================================================
--- head/sys/netinet6/ip6_input.c	Thu Apr 23 17:36:08 2009	(r191432)
+++ head/sys/netinet6/ip6_input.c	Thu Apr 23 17:41:54 2009	(r191433)
@@ -269,7 +269,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