mirror of
https://github.com/opnsense/src.git
synced 2026-02-23 01:46:42 -05:00
Fix corner case where m_len was not being initialized.
Submitted by: Maksim Yevmenkin <myevmenk@digisle.net> MFC after: 1 week
This commit is contained in:
parent
366c509056
commit
4037698769
1 changed files with 3 additions and 1 deletions
|
|
@ -588,8 +588,10 @@ m_split(struct mbuf *m0, int len0, int wait)
|
|||
if (n->m_next == NULL) {
|
||||
(void) m_free(n);
|
||||
return (NULL);
|
||||
} else
|
||||
} else {
|
||||
n->m_len = 0;
|
||||
return (n);
|
||||
}
|
||||
} else
|
||||
MH_ALIGN(n, remain);
|
||||
} else if (remain == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue