mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue