commit | f367b11a626a561f50b7ca1c1c15cd5763b10cbb | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Thu Dec 14 22:42:52 2006 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Thu Dec 14 22:42:52 2006 +0000 |
tree | 547ee9551697e980ffcac57417ccc45cb093f48f | |
parent | 55269a70cfe9f17e3bcb4030cebf80798d6f40c8 [diff] |
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 b141000..135208e 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c
@@ -290,6 +290,7 @@ state = sw_after_slash_in_uri; break; default: + r->host_end = p; return NGX_HTTP_PARSE_INVALID_REQUEST; } break;