summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/sctp6_usrreq.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2016-01-17 12:15:41 +0000
committertuexen <tuexen@FreeBSD.org>2016-01-17 12:15:41 +0000
commit70ab0ed557e2bfba1ee7f7e04ef56422a59c1d78 (patch)
treec1c63fbc506f1285a8adfdf574e9cda2d4f0b203 /sys/netinet6/sctp6_usrreq.c
parent08b1ba6353e118296055ace26ff500a2fc2eda57 (diff)
downloadFreeBSD-src-70ab0ed557e2bfba1ee7f7e04ef56422a59c1d78.zip
FreeBSD-src-70ab0ed557e2bfba1ee7f7e04ef56422a59c1d78.tar.gz
MFC r291904:
Fix the allocation of outgoing streams: * When processing a cookie, use the number of streams announced in the INIT-ACK. * When sending an INIT-ACK for an existing association, use the value from the association, not from the end-point.
Diffstat (limited to 'sys/netinet6/sctp6_usrreq.c')
-rw-r--r--sys/netinet6/sctp6_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c
index 34786db..6749875 100644
--- a/sys/netinet6/sctp6_usrreq.c
+++ b/sys/netinet6/sctp6_usrreq.c
@@ -953,7 +953,7 @@ sctp6_connect(struct socket *so, struct sockaddr *addr, struct thread *p)
return (EALREADY);
}
/* We are GOOD to go */
- stcb = sctp_aloc_assoc(inp, addr, &error, 0, vrf_id, p);
+ stcb = sctp_aloc_assoc(inp, addr, &error, 0, vrf_id, inp->sctp_ep.pre_open_stream_count, p);
SCTP_ASOC_CREATE_UNLOCK(inp);
if (stcb == NULL) {
/* Gak! no memory */
OpenPOWER on IntegriCloud