Zero out pointers for consistency.
This was found by running syzkaller on an INVARIANTS kernel. MFC after: 3 days
This commit is contained in:
parent
23ee238fe5
commit
9803dbb3ea
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user