mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
In m_devget(), if the data fits in a packet header mbuf, check the amount
of data is less than or equal to MHLEN instead of MLEN when placing initial small packet header at end of mbuf. Reviewed by: glebius MFC after: 3 days
This commit is contained in:
parent
ef13681631
commit
cee4a05669
1 changed files with 1 additions and 1 deletions
|
|
@ -984,7 +984,7 @@ m_devget(char *buf, int totlen, int off, struct ifnet *ifp,
|
|||
len = MHLEN;
|
||||
|
||||
/* Place initial small packet/header at end of mbuf */
|
||||
if (m && totlen + off + max_linkhdr <= MLEN) {
|
||||
if (m && totlen + off + max_linkhdr <= MHLEN) {
|
||||
m->m_data += max_linkhdr;
|
||||
len -= max_linkhdr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue