From d77c42a16a7ee2b793cfecc2e1b8116852c37b24 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 1 Sep 2009 12:32:37 +0000 Subject: [PATCH] fix segfault when a header starts with "\rX" and logging is set to info or debug level --- src/http/ngx_http_parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index fd48fcdff..c1fba529d 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -743,6 +743,7 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b, switch (ch) { case CR: + r->header_name_start = p; r->header_end = p; state = sw_header_almost_done; break;