changeset 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 58f3d0ba9b5f
children 44ac242eb6ac
files src/http/ngx_http_parse.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;