Skip to content

Commit

Permalink
MFC r352652:
Browse files Browse the repository at this point in the history
Plumb a memory leak.
Thnanks to Felix Weinrank for finding this issue using fuzz testing
and reporting it for the userland stack:
sctplab/usrsctp#378


git-svn-id: https://svn.freebsd.org/base/stable/12@353034 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  • Loading branch information
tuexen committed Oct 3, 2019
1 parent d23c80f commit 77b10b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sys/netinet/sctp_indata.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit 77b10b7

Please sign in to comment.