Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2019 08:21:02 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r347650 - stable/11/sys/netinet
Message-ID:  <201905160821.x4G8L2SX011624@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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... */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905160821.x4G8L2SX011624>