svn commit: r200152 - stable/8/sys/netinet
Bjoern A. Zeeb
bz at FreeBSD.org
Sat Dec 5 19:44:16 UTC 2009
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;
}
More information about the svn-src-stable-8
mailing list