From 04d432fdc0c15f2da76dac4a9a5caf1aeb051ef0 Mon Sep 17 00:00:00 2001 From: tuexen Date: Sun, 30 Sep 2018 21:54:02 +0000 Subject: [PATCH] Plug mbuf leak in the SCTP input path in an error case. Approved by: re (kib@) MFC after: 1 week CID: 749312 --- sys/netinet/sctp_asconf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netinet/sctp_asconf.c b/sys/netinet/sctp_asconf.c index 26b1ba6f508b..611280f1ae42 100644 --- a/sys/netinet/sctp_asconf.c +++ b/sys/netinet/sctp_asconf.c @@ -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... */