Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2009 20:29:14 +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: r198050 - head/sys/netinet
Message-ID:  <200910132029.n9DKTEJE015700@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Tue Oct 13 20:29:14 2009
New Revision: 198050
URL: http://svn.freebsd.org/changeset/base/198050

Log:
  Compare pointer to NULL rather than 0.
  
  MFC after:	1 month

Modified:
  head/sys/netinet/ip_icmp.c

Modified: head/sys/netinet/ip_icmp.c
==============================================================================
--- head/sys/netinet/ip_icmp.c	Tue Oct 13 20:22:12 2009	(r198049)
+++ head/sys/netinet/ip_icmp.c	Tue Oct 13 20:29:14 2009	(r198050)
@@ -367,7 +367,7 @@ icmp_input(struct mbuf *m, int off)
 		goto freeit;
 	}
 	i = hlen + min(icmplen, ICMP_ADVLENMIN);
-	if (m->m_len < i && (m = m_pullup(m, i)) == 0)  {
+	if (m->m_len < i && (m = m_pullup(m, i)) == NULL)  {
 		ICMPSTAT_INC(icps_tooshort);
 		return;
 	}



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