mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Fix parens in m_pullup() line in arp handling code. The code was
improperly doing the equivalent of (m = (function() == NULL)) instead
of ((m = function()) == NULL).
This fixes a NULL pointer dereference panic with runt arp packets.
This commit is contained in:
parent
ca04fd5f6f
commit
84365e2bcb
1 changed files with 1 additions and 1 deletions
|
|
@ -444,7 +444,7 @@ arpintr()
|
|||
panic("arpintr");
|
||||
|
||||
if (m->m_len < sizeof(struct arphdr) &&
|
||||
(m = m_pullup(m, sizeof(struct arphdr)) == NULL)) {
|
||||
((m = m_pullup(m, sizeof(struct arphdr))) == NULL)) {
|
||||
log(LOG_ERR, "arp: runt packet -- m_pullup failed.");
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue