diff options
author | tuexen <tuexen@FreeBSD.org> | 2010-04-03 15:40:14 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2010-04-03 15:40:14 +0000 |
commit | 238a37de82c68689f86b353ea628510ea7de86fb (patch) | |
tree | 910b3788649fd9cf8fa48c1f3ecdecaeeca07e09 /sys/netinet/sctp_usrreq.c | |
parent | 7fe3c0a85bf91b64ec309ff2b7806fef53de39e0 (diff) | |
download | FreeBSD-src-238a37de82c68689f86b353ea628510ea7de86fb.zip FreeBSD-src-238a37de82c68689f86b353ea628510ea7de86fb.tar.gz |
* Fix some race condition in SACK/NR-SACK processing.
* Fix handling of mapping arrays when draining mbufs or processing
FORWARD-TSN chunks.
* Cleanup code (no duplicate code anymore for SACKs and NR-SACKs).
Part of this code was developed together with rrs.
MFC after: 2 weeks.
Diffstat (limited to 'sys/netinet/sctp_usrreq.c')
-rw-r--r-- | sys/netinet/sctp_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c index 2851272..fc6a4ac 100644 --- a/sys/netinet/sctp_usrreq.c +++ b/sys/netinet/sctp_usrreq.c @@ -1492,7 +1492,7 @@ sctp_do_connect_x(struct socket *so, struct sctp_inpcb *inp, void *optval, /* We are GOOD to go */ - stcb = sctp_aloc_assoc(inp, sa, 1, &error, 0, vrf_id, + stcb = sctp_aloc_assoc(inp, sa, &error, 0, vrf_id, (struct thread *)p ); if (stcb == NULL) { @@ -4459,7 +4459,7 @@ sctp_connect(struct socket *so, struct sockaddr *addr, struct thread *p) } vrf_id = inp->def_vrf_id; /* We are GOOD to go */ - stcb = sctp_aloc_assoc(inp, addr, 1, &error, 0, vrf_id, p); + stcb = sctp_aloc_assoc(inp, addr, &error, 0, vrf_id, p); if (stcb == NULL) { /* Gak! no memory */ goto out_now; |