]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Check that r->filename is non-null before trying to use
authorBrian Pane <brianp@apache.org>
Sun, 8 Sep 2002 17:56:18 +0000 (17:56 +0000)
committerBrian Pane <brianp@apache.org>
Sun, 8 Sep 2002 17:56:18 +0000 (17:56 +0000)
it in proxy_map_location()
PR: 12340

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96715 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.c

index 27e6ca58d2b9b2380f5357af66222157eb23b536..58eadbf989a3489ff5e61527c3d22b6a243c7b63 100644 (file)
@@ -252,7 +252,7 @@ static int proxy_map_location(request_rec *r)
 {
     int access_status;
 
-    if (!r->proxyreq || strncmp(r->filename, "proxy:", 6) != 0)
+    if (!r->proxyreq || !r->filename || strncmp(r->filename, "proxy:", 6) != 0)
         return DECLINED;
 
     /* Don't let the core or mod_http map_to_storage hooks handle this,