aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2009-12-05 19:44:16 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2009-12-05 19:44:16 +0000
commitb4e227f473887325e5613962feed02925667bbca (patch)
tree9bf3a82f727e318ab7f799d3928f59da632e3d00 /sys
parent4fe9cf96e9aff564e2c7e5316aa4b1b897fbaa7e (diff)
Notes
Diffstat (limited to 'sys')
-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 fcb9ca6ceaa2..b13bc7ca8277 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;
}