When the sending of an SCTP outgoing stream reset request fails,

don't report it to the user since all stream have been marked
as pending.

MFC after:	1 week
This commit is contained in:
Michael Tuexen 2015-11-26 23:12:41 +00:00
parent 6dd7775dfd
commit f0067f2251
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291376

View File

@ -4651,11 +4651,20 @@ sctp_setopt(struct socket *so, int optname, void *optval, size_t optsize,
error = sctp_send_str_reset_req(stcb, strrst->srs_number_streams,
strrst->srs_stream_list,
send_in, 0, 0, 0, 0, 0);
} else
} else {
error = sctp_send_stream_reset_out_if_possible(stcb, SCTP_SO_LOCKED);
if (!error)
}
if (error == 0) {
sctp_chunk_output(inp, stcb, SCTP_OUTPUT_FROM_STRRST_REQ, SCTP_SO_LOCKED);
} else {
/*
* For outgoing streams don't report any
* problems in sending the request to the
* application. XXX: Double check resetting
* incoming streams.
*/
error = 0;
}
SCTP_TCB_UNLOCK(stcb);
break;
}