summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2015-01-18 22:00:39 +0000
committertuexen <tuexen@FreeBSD.org>2015-01-18 22:00:39 +0000
commit51e92f331975b4ef1a007b05d3266697edab8381 (patch)
treec2c0e44bbf61038acb878c28f0abe5b5fa7e00f2
parent142fb530ca2eafe21af1e49ba8a92d6aa71530ee (diff)
downloadFreeBSD-src-51e92f331975b4ef1a007b05d3266697edab8381.zip
FreeBSD-src-51e92f331975b4ef1a007b05d3266697edab8381.tar.gz
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
-rw-r--r--sys/netinet/sctp_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c
index 86aa3af..8e81574 100644
--- a/sys/netinet/sctp_output.c
+++ b/sys/netinet/sctp_output.c
@@ -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;
OpenPOWER on IntegriCloud