summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorNick Kew <niq@apache.org>2006-04-16 00:45:00 +0200
committerNick Kew <niq@apache.org>2006-04-16 00:45:00 +0200
commit381c9cec2fb7d0704af6ce9e055b438b48d04917 (patch)
treee0fa5ffd09c5b8175a21e1514d19a2df42a17135 /modules
parentdecouple the two scoreboard full messages (diff)
downloadapache2-381c9cec2fb7d0704af6ce9e055b438b48d04917.tar.xz
apache2-381c9cec2fb7d0704af6ce9e055b438b48d04917.zip
PR#39321 - don't segfault if a bad URL is specified in ProxyPass
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@394390 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--modules/proxy/proxy_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c
index a63bfcaf63..b4ab3c0d12 100644
--- a/modules/proxy/proxy_util.c
+++ b/modules/proxy/proxy_util.c
@@ -1308,6 +1308,9 @@ PROXY_DECLARE(const char *) ap_proxy_add_worker(proxy_worker **worker,
if (rv != APR_SUCCESS) {
return "Unable to parse URL";
}
+ if (!uri.hostname || !uri.scheme) {
+ return "URL must be absolute!";
+ }
ap_str_tolower(uri.hostname);
ap_str_tolower(uri.scheme);