The desired lock here is socket buffer, not socket.
Right now they match, but won't in future.
This commit is contained in:
parent
8d40bada3e
commit
12d8a8e7a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319686
@ -4856,7 +4856,7 @@ sctp_free_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int from_inpcbfre
|
||||
inp->sctp_flags &= ~SCTP_PCB_FLAGS_CONNECTED;
|
||||
inp->sctp_flags |= SCTP_PCB_FLAGS_WAS_CONNECTED;
|
||||
if (so) {
|
||||
SOCK_LOCK(so);
|
||||
SOCKBUF_LOCK(&so->so_rcv);
|
||||
if (so->so_rcv.sb_cc == 0) {
|
||||
so->so_state &= ~(SS_ISCONNECTING |
|
||||
SS_ISDISCONNECTING |
|
||||
|
Loading…
Reference in New Issue
Block a user