mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Add missing socket lock.
MFC after: 1 week
This commit is contained in:
parent
67e4d800ec
commit
afb908dada
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323902
@ -2484,7 +2484,9 @@ sctp_inpcb_alloc(struct socket *so, uint32_t vrf_id)
|
||||
inp->sctp_flags = (SCTP_PCB_FLAGS_TCPTYPE |
|
||||
SCTP_PCB_FLAGS_UNBOUND);
|
||||
/* Be sure we have blocking IO by default */
|
||||
SOCK_LOCK(so);
|
||||
SCTP_CLEAR_SO_NBIO(so);
|
||||
SOCK_UNLOCK(so);
|
||||
} else {
|
||||
/*
|
||||
* unsupported socket type (RAW, etc)- in case we missed it
|
||||
|
Loading…
Reference in New Issue
Block a user