svn commit: r277350 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sun Jan 18 22:00:40 UTC 2015


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;


More information about the svn-src-all mailing list