From 08c879b62dcc5986359121d53b2f8add74476669 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Sat, 17 Apr 2021 20:13:28 +0000 Subject: fix StrictHostCheck crash w/ HTTP/1.0 not released git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1888871 13f79535-47bb-0310-9956-ffa450edef68 --- server/vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/vhost.c') diff --git a/server/vhost.c b/server/vhost.c index 6d24f2bb5b..9956c740c8 100644 --- a/server/vhost.c +++ b/server/vhost.c @@ -1202,7 +1202,7 @@ AP_DECLARE(int) ap_update_vhost_from_headers_ex(request_rec *r, int require_matc else check_serverpath(r); } - else if (require_match) { + else if (require_match && r->hostname) { /* check the base server config */ rc = update_server_from_aliases(r); } -- cgit v1.2.3