diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index 9bf99162b..976543034 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -454,6 +454,8 @@ ngx_http_filter_finalize_request(ngx_http_request_t *r, ngx_module_t *m, ngx_http_clean_header(r); + ctx = NULL; + if (m) { ctx = r->ctx[m->ctx_index]; }