commit | 98d059bc0522e95e98bd56196678fab08f9cb6d8 | [log] [tgz] |
---|---|---|
author | Valentin Bartenev <vbart@nginx.com> | Wed Feb 24 16:05:46 2016 +0300 |
committer | Valentin Bartenev <vbart@nginx.com> | Wed Feb 24 16:05:46 2016 +0300 |
tree | d521bb6dc62d4443da5e23c88353c3ec9de07c37 | |
parent | 142437da1adb5aced816e099a581cb9e927d479c [diff] |
HTTP/2: cleaned up state while closing stream. Without this the state might keep pointing to already closed stream.
diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c index 4e378c9..0447534 100644 --- a/src/http/v2/ngx_http_v2.c +++ b/src/http/v2/ngx_http_v2.c
@@ -3661,6 +3661,10 @@ } } + if (h2c->state.stream == stream) { + h2c->state.stream = NULL; + } + node->stream = NULL; ngx_queue_insert_tail(&h2c->closed, &node->reuse);