mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 19:22:47 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58499
@ -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 New Issue
Block a user