mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Do not leak control in raw_usend
This commit is contained in:
parent
752e881db7
commit
f5056d933a
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue