Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2015 22:00:39 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r277350 - head/sys/netinet
Message-ID:  <201501182200.t0IM0daZ079238@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Sun Jan 18 22:00:39 2015
New Revision: 277350
URL: https://svnweb.freebsd.org/changeset/base/277350

Log:
  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

Modified:
  head/sys/netinet/sctp_output.c

Modified: head/sys/netinet/sctp_output.c
==============================================================================
--- head/sys/netinet/sctp_output.c	Sun Jan 18 21:18:28 2015	(r277349)
+++ head/sys/netinet/sctp_output.c	Sun Jan 18 22:00:39 2015	(r277350)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501182200.t0IM0daZ079238>