merge r3076, r3080: fix segfault when a header starts with "\rX" and logging is set to info or debug level
Igor Sysoev
12 years ago
1 changed file(s) with
1 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-1
src/http/ngx_http_parse.c
less
more
737
737
738
738
/* first char */
739
739
case sw_start:
740
r->header_name_start = p;
740
741
r->invalid_header = 0;
741
742
742
743
switch (ch) {
749
750
goto header_done;
750
751
default:
751
752
state = sw_name;
752
r->header_name_start = p;
753
753
754
754
c = lowcase[ch];
755
755