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 { _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"