mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Don't panic in M_PREPEND() if m_prepend() fails and frees the mbuf chain.
Reviewed by: jlemon
This commit is contained in:
parent
6ab0aaaf3f
commit
4bbf190154
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59382
@ -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…
Reference in New Issue
Block a user