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:
parent
3c78771400
commit
2b861c1538
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352652
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user