svn commit: r347650 - stable/11/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Thu May 16 08:21:03 UTC 2019


Author: tuexen
Date: Thu May 16 08:21:01 2019
New Revision: 347650
URL: https://svnweb.freebsd.org/changeset/base/347650

Log:
  MFC r339028:
  
  Plug mbuf leak in the SCTP input path in an error case.

Modified:
  stable/11/sys/netinet/sctp_asconf.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet/sctp_asconf.c
==============================================================================
--- stable/11/sys/netinet/sctp_asconf.c	Thu May 16 08:19:23 2019	(r347649)
+++ stable/11/sys/netinet/sctp_asconf.c	Thu May 16 08:21:01 2019	(r347650)
@@ -668,6 +668,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-stable mailing list