Fix a locking issue found by Coverity scanning the usrsctp library.
MFC after: 3 days
This commit is contained in:
parent
f55c326691
commit
2e8bb5ddf4
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue