From 3f795dd3c72e70831cae92f0628a402191d85ad2 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Thu, 23 Apr 2009 17:41:54 +0000 Subject: [PATCH] Compare protosw pointer with NULL. MFC after: 1 month --- sys/netinet6/ip6_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 27c8e89b8cd..5654c942169 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -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. */