From: Igor Sysoev Date: Thu, 14 Dec 2006 22:42:52 +0000 (+0000) Subject: fix segfault when $host is used and request is "GET http://host HTTP/1.0" X-Git-Tag: release-0.5.4~1 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=f367b11a626a561f50b7ca1c1c15cd5763b10cbb;p=nginx.git fix segfault when $host is used and request is "GET http://host HTTP/1.0" --- diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index b141000b6..135208ef0 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -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;