Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Sep 2017 20:51:54 +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: r323377 - head/sys/netinet6
Message-ID:  <201709092051.v89Kps09014087@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Sat Sep  9 20:51:54 2017
New Revision: 323377
URL: https://svnweb.freebsd.org/changeset/base/323377

Log:
  Fix a locking issue found by Coverity scanning the usrsctp library.
  
  MFC after:	3 days

Modified:
  head/sys/netinet6/sctp6_usrreq.c

Modified: head/sys/netinet6/sctp6_usrreq.c
==============================================================================
--- head/sys/netinet6/sctp6_usrreq.c	Sat Sep  9 20:44:56 2017	(r323376)
+++ head/sys/netinet6/sctp6_usrreq.c	Sat Sep  9 20:51:54 2017	(r323377)
@@ -879,7 +879,7 @@ sctp6_connect(struct socket *so, struct sockaddr *addr
 	if (inp->sctp_flags & SCTP_PCB_FLAGS_CONNECTED) {
 		stcb = LIST_FIRST(&inp->sctp_asoc_list);
 		if (stcb) {
-			SCTP_TCB_UNLOCK(stcb);
+			SCTP_TCB_LOCK(stcb);
 		}
 		SCTP_INP_RUNLOCK(inp);
 	} else {



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