Don't panic in M_PREPEND() if m_prepend() fails and frees the mbuf chain.
Reviewed by: jlemon
This commit is contained in:
parent
ad161ec301
commit
9530501d58
@ -496,7 +496,7 @@ union mcluster {
|
||||
_mm->m_len += _mplen; \
|
||||
} else \
|
||||
_mm = m_prepend(_mm, _mplen, __mhow); \
|
||||
if (_mm->m_flags & M_PKTHDR) \
|
||||
if (_mm != NULL && _mm->m_flags & M_PKTHDR) \
|
||||
_mm->m_pkthdr.len += _mplen; \
|
||||
*_mmp = _mm; \
|
||||
} while (0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user