svn commit: r198050 - head/sys/netinet

Bjoern A. Zeeb bz at FreeBSD.org
Tue Oct 13 20:29:15 UTC 2009


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;
 	}


More information about the svn-src-all mailing list