1
0
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:
Ruslan Ermilov 2003-12-23 14:08:50 +00:00
parent 7a744a48d2
commit 3117579171
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123768

View File

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