Compare pointer to NULL rather than 0.

MFC after:	1 month
This commit is contained in:
Bjoern A. Zeeb 2009-10-13 20:29:14 +00:00
parent 44b636910b
commit 852da713c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198050

View File

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