From b21153d4633ec36ab366aa570a197f6aba8f390b Mon Sep 17 00:00:00 2001 From: tuexen Date: Fri, 29 May 2015 12:57:04 +0000 Subject: [PATCH] MFC r279863: Unlock the stcb when using setsockopt() for the SCTP_PEER_ADDR_THLDS option. --- sys/netinet/sctp_usrreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c index 3384def3bf24..87defc006c6c 100644 --- a/sys/netinet/sctp_usrreq.c +++ b/sys/netinet/sctp_usrreq.c @@ -6249,6 +6249,7 @@ sctp_setopt(struct socket *so, int optname, void *optval, size_t optsize, stcb->asoc.def_net_failure = thlds->spt_pathmaxrxt; stcb->asoc.def_net_pf_threshold = thlds->spt_pathpfthld; } + SCTP_TCB_UNLOCK(stcb); } else { if ((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || (inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL) ||