]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
PR#39321 - don't segfault if a bad URL is specified in ProxyPass
authorNick Kew <niq@apache.org>
Sat, 15 Apr 2006 22:45:00 +0000 (22:45 +0000)
committerNick Kew <niq@apache.org>
Sat, 15 Apr 2006 22:45:00 +0000 (22:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@394390 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index a63bfcaf636a21fd0c51d02b6d161f78ae92e7c1..b4ab3c0d12ea0c0da05ab03b25d3e425a188f73b 100644 (file)
@@ -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);