diff src/http/ngx_http_parse.c @ 3075:dcf50b4c7ec6

fix segfault when a header starts with "\rX" and logging is set to info or debug level
author Igor Sysoev <igor@sysoev.ru>
date Tue, 01 Sep 2009 12:32:37 +0000
parents d19467d8c659
children 566eeb81e807
line wrap: on
line diff
--- 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_requ
 
             switch (ch) {
             case CR:
+                r->header_name_start = p;
                 r->header_end = p;
                 state = sw_header_almost_done;
                 break;