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:
parent
d53ee33e1c
commit
b4bf72213a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302930
@ -961,11 +961,6 @@ sctp_inject_old_data_unordered(struct sctp_tcb *stcb, struct sctp_association *a
|
||||
* 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);
|
||||
|
Loading…
Reference in New Issue
Block a user