svn commit: r325565 - head/sys/net
Antoine Brodin
antoine at FreeBSD.org
Wed Nov 8 23:20:06 UTC 2017
Author: antoine
Date: Wed Nov 8 23:20:05 2017
New Revision: 325565
URL: https://svnweb.freebsd.org/changeset/base/325565
Log:
Do not leak control in raw_usend
Modified:
head/sys/net/raw_usrreq.c
Modified: head/sys/net/raw_usrreq.c
==============================================================================
--- head/sys/net/raw_usrreq.c Wed Nov 8 23:11:15 2017 (r325564)
+++ head/sys/net/raw_usrreq.c Wed Nov 8 23:20:05 2017 (r325565)
@@ -225,9 +225,10 @@ raw_usend(struct socket *so, int flags, struct mbuf *m
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);
}
More information about the svn-src-head
mailing list