From deb38ff87ceedf687f1f4d10642deeb4f0132fd3 Mon Sep 17 00:00:00 2001 From: Hakase Date: Wed, 16 Oct 2019 08:53:14 +0900 Subject: [PATCH] Latest update - 7580 --- src/http/ngx_http_parse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index aa56b97..cfc42f9 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -912,6 +912,8 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b, i = 1; } else { + hash = 0; + i = 0; r->invalid_header = 1; } @@ -922,6 +924,8 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b, return NGX_HTTP_PARSE_INVALID_HEADER; } + hash = 0; + i = 0; r->invalid_header = 1; break;