diff options
author | tuexen <tuexen@FreeBSD.org> | 2015-12-06 16:17:57 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2015-12-06 16:17:57 +0000 |
commit | 23770ab9427614306517b5c1475be90157731cef (patch) | |
tree | a643c8a1cec57c56f0ee5a56f08a51cba38a5191 /sys/netinet6 | |
parent | bfe5e9c164293f28ef6fa5adf6eb185a85e9731d (diff) | |
download | FreeBSD-src-23770ab9427614306517b5c1475be90157731cef.zip FreeBSD-src-23770ab9427614306517b5c1475be90157731cef.tar.gz |
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.
MFC after: 1 week
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/sctp6_usrreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c index 4f0d83d..43df06e 100644 --- a/sys/netinet6/sctp6_usrreq.c +++ b/sys/netinet6/sctp6_usrreq.c @@ -946,7 +946,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 */ |