# HG changeset patch # User Valentin Bartenev # Date 1456319146 -10800 # Node ID c6ccc1ea9450ac6caff05f7c7ee5f22839fa8edb # Parent 71edd9192f24ecc1ce9ffe3bcd128f4a390030f3 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 --- a/src/http/v2/ngx_http_v2.c +++ b/src/http/v2/ngx_http_v2.c @@ -3661,6 +3661,10 @@ ngx_http_v2_close_stream(ngx_http_v2_str } } + if (h2c->state.stream == stream) { + h2c->state.stream = NULL; + } + node->stream = NULL; ngx_queue_insert_tail(&h2c->closed, &node->reuse);