mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
I didn't notice it right away, but check the right length too.
This commit is contained in:
parent
7a744a48d2
commit
3117579171
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123768
@ -530,7 +530,7 @@ arpintr(struct mbuf *m)
|
||||
return;
|
||||
}
|
||||
|
||||
if (m->m_pkthdr.len < arphdr_len(ar)) {
|
||||
if (m->m_len < arphdr_len(ar)) {
|
||||
if ((m = m_pullup(m, arphdr_len(ar))) == NULL) {
|
||||
log(LOG_ERR, "arp: runt packet\n");
|
||||
m_freem(m);
|
||||
|
Loading…
Reference in New Issue
Block a user