Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2015 12:53:27 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288066 - head/sys/netinet6
Message-ID:  <201509211253.t8LCrRQ7018863@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Mon Sep 21 12:53:26 2015
New Revision: 288066
URL: https://svnweb.freebsd.org/changeset/base/288066

Log:
  Compare mbuf pointer to NULL rather than to 0.
  No functional change.
  
  MFC after:	2 weeks

Modified:
  head/sys/netinet6/udp6_usrreq.c

Modified: head/sys/netinet6/udp6_usrreq.c
==============================================================================
--- head/sys/netinet6/udp6_usrreq.c	Mon Sep 21 12:32:36 2015	(r288065)
+++ head/sys/netinet6/udp6_usrreq.c	Mon Sep 21 12:53:26 2015	(r288066)
@@ -788,7 +788,7 @@ udp6_output(struct inpcb *inp, struct mb
 	 * for UDP and IP6 headers.
 	 */
 	M_PREPEND(m, hlen + sizeof(struct udphdr), M_NOWAIT);
-	if (m == 0) {
+	if (m == NULL) {
 		error = ENOBUFS;
 		goto release;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509211253.t8LCrRQ7018863>