svn commit: r283719 - stable/10/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Fri May 29 12:33:03 UTC 2015


Author: tuexen
Date: Fri May 29 12:33:02 2015
New Revision: 283719
URL: https://svnweb.freebsd.org/changeset/base/283719

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

Modified:
  stable/10/sys/netinet/sctp_output.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/sctp_output.c
==============================================================================
--- stable/10/sys/netinet/sctp_output.c	Fri May 29 12:30:19 2015	(r283718)
+++ stable/10/sys/netinet/sctp_output.c	Fri May 29 12:33:02 2015	(r283719)
@@ -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