aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2015-03-10 21:05:17 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2015-03-10 21:05:17 +0000
commit2bb7e77385d3a46216b35cc5a6c2f3b9c202e480 (patch)
treeff86fa8122d8dc4273bae4f8136932a942b0124b
parentba8d15d3a8b10be9f3a0cb86a60246f225a36736 (diff)
downloadsrc-2bb7e77385d3a46216b35cc5a6c2f3b9c202e480.tar.gz
src-2bb7e77385d3a46216b35cc5a6c2f3b9c202e480.zip
Unlock the stcb when using setsockopt() for the SCTP_PEER_ADDR_THLDS option.
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=279863
-rw-r--r--sys/netinet/sctp_usrreq.c1
1 files changed, 1 insertions, 0 deletions
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) ||