diff options
| author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-18 15:08:31 +0000 |
|---|---|---|
| committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-18 15:08:31 +0000 |
| commit | 9929cc5dd0d882e8c0290e52678a58fd371f4c4d (patch) | |
| tree | 6f3df2c0861cf491d64765d4e759baaf430b6467 /lib/libipsec | |
| parent | 46266845a49ef7e3427b0f505b7f275565548703 (diff) | |
Notes
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 234e7c8bbcea..16e018bc19e8 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; } |
