Compare protosw pointer with NULL.

MFC after:	1 month
This commit is contained in:
bz 2009-04-23 17:41:54 +00:00
parent 00b3a1fd4f
commit 2dc7da25f0

View File

@ -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. */