svn commit: r298214 - head/lib/libipsec

Pedro F. Giffuni pfg at FreeBSD.org
Mon Apr 18 15:08:32 UTC 2016


Author: pfg
Date: Mon Apr 18 15:08:31 2016
New Revision: 298214
URL: https://svnweb.freebsd.org/changeset/base/298214

Log:
  libipsec: use NULL instead of zero for pointers.

Modified:
  head/lib/libipsec/pfkey.c

Modified: head/lib/libipsec/pfkey.c
==============================================================================
--- head/lib/libipsec/pfkey.c	Mon Apr 18 15:05:48 2016	(r298213)
+++ head/lib/libipsec/pfkey.c	Mon Apr 18 15:08:31 2016	(r298214)
@@ -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;
 	}


More information about the svn-src-head mailing list