svn commit: r332186 - stable/11/sys/netinet6
Michael Tuexen
tuexen at FreeBSD.org
Sat Apr 7 17:40:12 UTC 2018
Author: tuexen
Date: Sat Apr 7 17:40:11 2018
New Revision: 332186
URL: https://svnweb.freebsd.org/changeset/base/332186
Log:
MFC r323377:
Fix a locking issue found by Coverity scanning the usrsctp library.
Modified:
stable/11/sys/netinet6/sctp6_usrreq.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netinet6/sctp6_usrreq.c
==============================================================================
--- stable/11/sys/netinet6/sctp6_usrreq.c Sat Apr 7 17:38:38 2018 (r332185)
+++ stable/11/sys/netinet6/sctp6_usrreq.c Sat Apr 7 17:40:11 2018 (r332186)
@@ -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-stable
mailing list