svn commit: r339028 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sun Sep 30 21:54:03 UTC 2018


Author: tuexen
Date: Sun Sep 30 21:54:02 2018
New Revision: 339028
URL: https://svnweb.freebsd.org/changeset/base/339028

Log:
  Plug mbuf leak in the SCTP input path in an error case.
  
  Approved by:            re (kib@)
  MFC after:              1 week
  CID:			749312

Modified:
  head/sys/netinet/sctp_asconf.c

Modified: head/sys/netinet/sctp_asconf.c
==============================================================================
--- head/sys/netinet/sctp_asconf.c	Sun Sep 30 21:31:33 2018	(r339027)
+++ head/sys/netinet/sctp_asconf.c	Sun Sep 30 21:54:02 2018	(r339028)
@@ -670,6 +670,7 @@ sctp_handle_asconf(struct mbuf *m, unsigned int offset
 		SCTPDBG(SCTP_DEBUG_ASCONF1,
 		    "handle_asconf: couldn't get lookup addr!\n");
 		/* respond with a missing/invalid mandatory parameter error */
+		sctp_m_freem(m_ack);
 		return;
 	}
 	/* param_length is already validated in process_control... */


More information about the svn-src-head mailing list