Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Dec 2009 19:44:16 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r200152 - stable/8/sys/netinet
Message-ID:  <200912051944.nB5JiGwu097812@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sat Dec  5 19:44:16 2009
New Revision: 200152
URL: http://svn.freebsd.org/changeset/base/200152

Log:
  MFC r198050:
  
    Compare pointer to NULL rather than 0.

Modified:
  stable/8/sys/netinet/ip_icmp.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/netinet/ip_icmp.c
==============================================================================
--- stable/8/sys/netinet/ip_icmp.c	Sat Dec  5 19:42:42 2009	(r200151)
+++ stable/8/sys/netinet/ip_icmp.c	Sat Dec  5 19:44:16 2009	(r200152)
@@ -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?200912051944.nB5JiGwu097812>