Fix bug introduced in 1.130. For the < MHLEN case, we should

be doing a m_gethdr(), not an m_get().

Pointed out by: Hiten Pandya <hiten@unixdaemons.com>
Pointy hat to: Me
This commit is contained in:
Bosko Milekic 2003-03-04 20:19:26 +00:00
parent 49efad87df
commit 544244654a

View File

@ -2439,7 +2439,7 @@ xl_encap(sc, c, m_head)
m_new = m_head->m_pkthdr.len > MHLEN ?
m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR) :
m_get(M_DONTWAIT, MT_DATA);
m_gethdr(M_DONTWAIT, MT_DATA);
if (m_new == NULL) {
m_freem(m_head);
printf("xl%d: no memory for tx list\n", sc->xl_unit);