Mercurial > hg > nginx
changeset 3107:088a340003f4 stable-0.5
merge r3076, r3080:
fix segfault when a header starts with "\rX"
and logging is set to info or debug level
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 07 Sep 2009 12:02:37 +0000 |
parents | 634271b0cf2d |
children | 9ec5a0857fcd |
files | src/http/ngx_http_parse.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c Mon Sep 07 12:00:25 2009 +0000 +++ b/src/http/ngx_http_parse.c Mon Sep 07 12:02:37 2009 +0000 @@ -738,6 +738,7 @@ /* first char */ case sw_start: + r->header_name_start = p; r->invalid_header = 0; switch (ch) { @@ -750,7 +751,6 @@ goto header_done; default: state = sw_name; - r->header_name_start = p; c = lowcase[ch];