summaryrefslogtreecommitdiff
path: root/modules/http/mod_mime.c
diff options
context:
space:
mode:
authorBrian Pane <brianp@apache.org>2003-01-01 00:57:02 +0000
committerBrian Pane <brianp@apache.org>2003-01-01 00:57:02 +0000
commite14c93f3efb0ffe42eefc11622bd64f11b2fd407 (patch)
tree0f54601db06a03c0f39aaf3630760b2cb24e6260 /modules/http/mod_mime.c
parent2a1c98b3e9ce17df6b13e1080fca196941f7fbdc (diff)
downloadhttpd-e14c93f3efb0ffe42eefc11622bd64f11b2fd407.tar.gz
fix for mod_mime segfault when r->filename is null [ported back from 2.1]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@98136 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http/mod_mime.c')
-rw-r--r--modules/http/mod_mime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/http/mod_mime.c b/modules/http/mod_mime.c
index e91cdf9872..eecd8d1ac7 100644
--- a/modules/http/mod_mime.c
+++ b/modules/http/mod_mime.c
@@ -790,6 +790,10 @@ static int find_ct(request_rec *r)
return OK;
}
+ if (!r->filename) {
+ return DECLINED;
+ }
+
conf = (mime_dir_config *)ap_get_module_config(r->per_dir_config,
&mime_module);
exception_list = apr_array_make(r->pool, 2, sizeof(char *));