diff options
author | bz <bz@FreeBSD.org> | 2009-04-23 17:41:54 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-04-23 17:41:54 +0000 |
commit | 2dc7da25f0bdc321d37d0a791b512c2d6707e032 (patch) | |
tree | fb6d76d03bf717610ed1fadb4c8f276d20b55d2d /sys/netinet6 | |
parent | 00b3a1fd4fa72661f985945a23f97c9762c257b6 (diff) | |
download | FreeBSD-src-2dc7da25f0bdc321d37d0a791b512c2d6707e032.zip FreeBSD-src-2dc7da25f0bdc321d37d0a791b512c2d6707e032.tar.gz |
Compare protosw pointer with NULL.
MFC after: 1 month
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ip6_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 27c8e89..5654c94 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. */ |