Don't free a data chunk twice.

Found by the clang static code analyzer running for the userland stack.

MFC after:	3 days
This commit is contained in:
tuexen 2016-07-16 08:11:43 +00:00
parent 4ff5475d27
commit 4575027dc3

View File

@ -961,11 +961,6 @@ place_chunk:
* should not happen since the FSN is a TSN and it
* should have been dropped earlier.
*/
if (chk->data) {
sctp_m_freem(chk->data);
chk->data = NULL;
}
sctp_free_a_chunk(stcb, chk, SCTP_SO_NOT_LOCKED);
sctp_abort_in_reasm(stcb, control, chk,
abort_flag,
SCTP_FROM_SCTP_INDATA + SCTP_LOC_5);