Fix a bug which only shows up when an mbuf allocation failed.

Therefore chances are low that we hit this.

Reported by:	Coverity
CID:		1018886
MFC after:	1 week
This commit is contained in:
Michael Tuexen 2015-01-18 22:00:39 +00:00
parent 7075482d4a
commit e1600e5058

View File

@ -7420,7 +7420,7 @@ sctp_move_to_outqueue(struct sctp_tcb *stcb,
SCTP_TCB_SEND_LOCK(stcb);
send_lock_up = 1;
}
if (chk->data == NULL) {
if (sp->data == NULL) {
/* unsteal the data */
sp->data = chk->data;
sp->tail_mbuf = chk->last_mbuf;