]> git.kaiwu.me - nginx.git/commitdiff
fix segfault when a header starts with "\rX"
authorIgor Sysoev <igor@sysoev.ru>
Tue, 1 Sep 2009 12:32:37 +0000 (12:32 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 1 Sep 2009 12:32:37 +0000 (12:32 +0000)
and logging is set to info or debug level

src/http/ngx_http_parse.c

index fd48fcdff883df745adf56e7dd38090ee6eeb9aa..c1fba529dd5cc69defacd4b51c7de962d729214e 100644 (file)
@@ -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;