From: Brian Pane Date: Sun, 8 Sep 2002 17:56:18 +0000 (+0000) Subject: Check that r->filename is non-null before trying to use X-Git-Tag: AGB_BEFORE_AAA_CHANGES~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=306c5d82d99bbb158276c2cc1eb8184abfb03dcf;p=thirdparty%2Fapache%2Fhttpd.git Check that r->filename is non-null before trying to use 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 --- diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 27e6ca58d2b..58eadbf989a 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -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,