From 58b36bef21f0fab5576a80af9fcb75c0a8c4928e Mon Sep 17 00:00:00 2001 From: bz Date: Tue, 13 Oct 2009 20:29:14 +0000 Subject: Compare pointer to NULL rather than 0. MFC after: 1 month --- sys/netinet/ip_icmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.1