fix segfault when a header starts with "\rX"
and logging is set to info or debug level
This commit is contained in:
parent
02e136d3b5
commit
d77c42a16a
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue