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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94471
@ -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 New Issue
Block a user