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:
tuexen 2015-01-18 22:00:39 +00:00
parent 142fb530ca
commit 51e92f3319

View File

@ -7420,7 +7420,7 @@ dont_do_it:
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;