diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-18 15:08:31 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-18 15:08:31 +0000 |
commit | 37a227e93c384e41451b1bcdac122febf4e629a2 (patch) | |
tree | 6f3df2c0861cf491d64765d4e759baaf430b6467 /lib/libipsec | |
parent | dd20a579e1745800c8d79363a3886221c358a7f0 (diff) | |
download | FreeBSD-src-37a227e93c384e41451b1bcdac122febf4e629a2.zip FreeBSD-src-37a227e93c384e41451b1bcdac122febf4e629a2.tar.gz |
libipsec: use NULL instead of zero for pointers.
Diffstat (limited to 'lib/libipsec')
-rw-r--r-- | lib/libipsec/pfkey.c | 2 |
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; } |