diff options
author | rrs <rrs@FreeBSD.org> | 2006-11-09 21:01:07 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2006-11-09 21:01:07 +0000 |
commit | 877f5726faf34aebaa270edd88c29882b0a0d104 (patch) | |
tree | 8f3dfe7b55e5a3c1e8600adad0e4317d8330f21e /sys/netinet/sctp_usrreq.c | |
parent | 1b8790bd34bd25bd494197b1232690f171459ae4 (diff) | |
download | FreeBSD-src-877f5726faf34aebaa270edd88c29882b0a0d104.zip FreeBSD-src-877f5726faf34aebaa270edd88c29882b0a0d104.tar.gz |
Fixes an issue with handling of stream reset. When a
reset comes in we need to calculate the length and
therefore the number of listed streams (if any) based
on the TLV type. Otherwise if we get a retran we could
in theory panic by sending a notification to a user with
a incorrect list and thus no memory listing the streams.
Found in IOS by devtest :-)
Approved by: gnn
Diffstat (limited to 'sys/netinet/sctp_usrreq.c')
-rw-r--r-- | sys/netinet/sctp_usrreq.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c index 95762b8..58e7616 100644 --- a/sys/netinet/sctp_usrreq.c +++ b/sys/netinet/sctp_usrreq.c @@ -1733,7 +1733,6 @@ sctp_do_connect_x(struct socket *so, stcb = sctp_aloc_assoc(inp, sa, 1, &error, 0); if (stcb == NULL) { /* Gak! no memory */ - error = ENOMEM; goto out_now; } /* move to second address */ |