You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ni...@apache.org on 2006/04/16 00:45:01 UTC

svn commit: r394390 - /httpd/httpd/trunk/modules/proxy/proxy_util.c

Author: niq
Date: Sat Apr 15 15:45:00 2006
New Revision: 394390

URL: http://svn.apache.org/viewcvs?rev=394390&view=rev
Log:
PR#39321 - don't segfault if a bad URL is specified in ProxyPass

Modified:
    httpd/httpd/trunk/modules/proxy/proxy_util.c

Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=394390&r1=394389&r2=394390&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Sat Apr 15 15:45:00 2006
@@ -1308,6 +1308,9 @@
     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);