mirror of
https://github.com/nginx/nginx.git
synced 2026-09-26 16:54:09 +00:00
fix segfault when $host is used and request is "GET http://host HTTP/1.0"
This commit is contained in:
parent
55269a70cf
commit
f367b11a62
1 changed files with 1 additions and 0 deletions
|
|
@ -290,6 +290,7 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
|
|||
state = sw_after_slash_in_uri;
|
||||
break;
|
||||
default:
|
||||
r->host_end = p;
|
||||
return NGX_HTTP_PARSE_INVALID_REQUEST;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue