svn commit: r323377 - head/sys/netinet6

Michael Tuexen tuexen at FreeBSD.org
Sat Sep 9 20:51:56 UTC 2017


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 {


More information about the svn-src-all mailing list