fix segfault when a header starts with "\rX"

and logging is set to info or debug level
This commit is contained in:
Igor Sysoev 2009-09-01 12:32:37 +00:00
parent 02e136d3b5
commit d77c42a16a

View 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;