Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Apr 2009 17:41:54 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191433 - head/sys/netinet6
Message-ID:  <200904231741.n3NHfsPx095056@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904231741.n3NHfsPx095056>