]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix PR#39321 (Segfault if bad URL is specified in ProxyPass)
authorNick Kew <niq@apache.org>
Sun, 16 Apr 2006 21:02:24 +0000 (21:02 +0000)
committerNick Kew <niq@apache.org>
Sun, 16 Apr 2006 21:02:24 +0000 (21:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@394557 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/proxy/proxy_util.c

diff --git a/STATUS b/STATUS
index eaa3c6c8996a346f70c3b3c8b9c1368e3e3b08b5..e15b8ecd0958398829d525194cc87cb3db845e59 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -74,10 +74,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-    * Backport fix to PR#39321 (Segfault if bad URL is specified in ProxyPass)
-      http://svn.apache.org/viewcvs?rev=394390&view=rev
-      +1: niq, rpluem, trawick
-
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
 
     * mod_dbd: When threaded, create a private pool in child_init
index 104b465e68563c8321c51b9873cce6da946eca92..33fdb2148ef1809bd65476c8424bdae4d8052fd5 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);