From: Eric Covener Date: Sat, 17 Apr 2021 20:13:28 +0000 (+0000) Subject: fix StrictHostCheck crash w/ HTTP/1.0 X-Git-Tag: 2.5.0-alpha2-ci-test-only~965 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08c879b62dcc5986359121d53b2f8add74476669;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/server/vhost.c b/server/vhost.c index 6d24f2bb5b6..9956c740c86 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); }