svn commit: r279863 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Tue Mar 10 21:05:18 UTC 2015


Author: tuexen
Date: Tue Mar 10 21:05:17 2015
New Revision: 279863
URL: https://svnweb.freebsd.org/changeset/base/279863

Log:
  Unlock the stcb when using setsockopt() for the SCTP_PEER_ADDR_THLDS option.
  
  MFC after: 3 days

Modified:
  head/sys/netinet/sctp_usrreq.c

Modified: head/sys/netinet/sctp_usrreq.c
==============================================================================
--- head/sys/netinet/sctp_usrreq.c	Tue Mar 10 20:52:03 2015	(r279862)
+++ head/sys/netinet/sctp_usrreq.c	Tue Mar 10 21:05:17 2015	(r279863)
@@ -6249,6 +6249,7 @@ sctp_setopt(struct socket *so, int optna
 					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) ||


More information about the svn-src-head mailing list