Plumb a memory leak.

Thnanks to Felix Weinrank for finding this issue using fuzz testing
and reporting it for the userland stack:
https://github.com/sctplab/usrsctp/issues/378

MFC after:		3 days
This commit is contained in:
Michael Tuexen 2019-09-24 13:15:24 +00:00
parent 3c78771400
commit 2b861c1538
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352652

View File

@ -472,6 +472,11 @@ sctp_clean_up_control(struct sctp_tcb *stcb, struct sctp_queued_to_read *control
chk->data = NULL;
sctp_free_a_chunk(stcb, chk, SCTP_SO_NOT_LOCKED);
}
sctp_free_remote_addr(control->whoFrom);
if (control->data) {
sctp_m_freem(control->data);
control->data = NULL;
}
sctp_free_a_readq(stcb, control);
}