Zero out pointers for consistency.

This was found by running syzkaller on an INVARIANTS kernel.

MFC after:		3 days
This commit is contained in:
Michael Tuexen 2020-04-11 20:36:54 +00:00
parent 23ee238fe5
commit 9803dbb3ea

View File

@ -12275,6 +12275,8 @@ sctp_send_str_reset_req(struct sctp_tcb *stcb,
/* now anything on those queues? */
TAILQ_FOREACH_SAFE(sp, &oldstream[i].outqueue, next, nsp) {
TAILQ_REMOVE(&oldstream[i].outqueue, sp, next);
sp->ss_next.tqe_next = NULL;
sp->ss_next.tqe_prev = NULL;
TAILQ_INSERT_TAIL(&stcb->asoc.strmout[i].outqueue, sp, next);
}