summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-10-13 20:29:14 +0000
committerbz <bz@FreeBSD.org>2009-10-13 20:29:14 +0000
commit58b36bef21f0fab5576a80af9fcb75c0a8c4928e (patch)
tree476277bd1fdd9135fc5313d7c0bf71d0175bdaf4
parent46feb85d448f3da8ff9cdf61fa67ef2519b9228a (diff)
downloadFreeBSD-src-58b36bef21f0fab5576a80af9fcb75c0a8c4928e.zip
FreeBSD-src-58b36bef21f0fab5576a80af9fcb75c0a8c4928e.tar.gz
Compare pointer to NULL rather than 0.
MFC after: 1 month
-rw-r--r--sys/netinet/ip_icmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
index fcb9ca6..b13bc7c 100644
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -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;
}
OpenPOWER on IntegriCloud