mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Do not leak control in raw_usend
This commit is contained in:
parent
752e881db7
commit
f5056d933a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325565
@ -225,9 +225,10 @@ raw_usend(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
|
||||
KASSERT(sotorawcb(so) != NULL, ("raw_usend: rp == NULL"));
|
||||
|
||||
if ((flags & PRUS_OOB) || (control && control->m_len)) {
|
||||
/* XXXRW: Should control also be freed here? */
|
||||
if (m != NULL)
|
||||
m_freem(m);
|
||||
if (control != NULL)
|
||||
m_freem(control);
|
||||
return (EOPNOTSUPP);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user