Not sure this can happen, but the tests in this function handle such a case, so they should handle it correctly.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1742444 13f79535-47bb-0310-9956-
ffa450edef68
static apr_status_t out_close(h2_mplx *m, h2_task *task)
{
apr_status_t status = APR_SUCCESS;
- h2_stream *stream = h2_ihash_get(m->streams, task->stream_id);
+ h2_stream *stream;
- if (!task || !stream) {
+ if (!task) {
return APR_ECONNABORTED;
}
-
+
+ stream = h2_ihash_get(m->streams, task->stream_id);
+ if (!stream) {
+ return APR_ECONNABORTED;
+ }
+
if (!task->response && !task->rst_error) {
/* In case a close comes before a response was created,
* insert an error one so that our streams can properly