diff options
author | Eric Covener <covener@apache.org> | 2021-04-17 22:13:28 +0200 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2021-04-17 22:13:28 +0200 |
commit | 08c879b62dcc5986359121d53b2f8add74476669 (patch) | |
tree | ab64028d6ab7dcb96180ed80dc6c8d83e3500846 /server/vhost.c | |
parent | server/protocol.c: remove old hooks links that had been moved to server/ssl.c (diff) | |
download | apache2-08c879b62dcc5986359121d53b2f8add74476669.tar.xz apache2-08c879b62dcc5986359121d53b2f8add74476669.zip |
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
Diffstat (limited to 'server/vhost.c')
-rw-r--r-- | server/vhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |