summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-18 15:08:31 +0000
committerpfg <pfg@FreeBSD.org>2016-04-18 15:08:31 +0000
commit37a227e93c384e41451b1bcdac122febf4e629a2 (patch)
tree6f3df2c0861cf491d64765d4e759baaf430b6467
parentdd20a579e1745800c8d79363a3886221c358a7f0 (diff)
downloadFreeBSD-src-37a227e93c384e41451b1bcdac122febf4e629a2.zip
FreeBSD-src-37a227e93c384e41451b1bcdac122febf4e629a2.tar.gz
libipsec: use NULL instead of zero for pointers.
-rw-r--r--lib/libipsec/pfkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libipsec/pfkey.c b/lib/libipsec/pfkey.c
index 234e7c8..16e018b 100644
--- a/lib/libipsec/pfkey.c
+++ b/lib/libipsec/pfkey.c
@@ -1645,7 +1645,7 @@ pfkey_recv(so)
/* read real message */
reallen = PFKEY_UNUNIT64(buf.sadb_msg_len);
- if ((newmsg = CALLOC(reallen, struct sadb_msg *)) == 0) {
+ if ((newmsg = CALLOC(reallen, struct sadb_msg *)) == NULL) {
__ipsec_set_strerror(strerror(errno));
return NULL;
}
OpenPOWER on IntegriCloud