Fix a locking issue found by Coverity scanning the usrsctp library.

MFC after:	3 days
This commit is contained in:
Michael Tuexen 2017-09-09 20:51:54 +00:00
parent f55c326691
commit 2e8bb5ddf4
1 changed files with 1 additions and 1 deletions

View File

@ -879,7 +879,7 @@ sctp6_connect(struct socket *so, struct sockaddr *addr, struct thread *p)
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 {