Compare pointer to NULL rather than 0.
MFC after: 1 month
This commit is contained in:
parent
44b636910b
commit
852da713c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198050
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user