diff options
author | Brian Pane <brianp@apache.org> | 2002-12-15 17:37:19 +0100 |
---|---|---|
committer | Brian Pane <brianp@apache.org> | 2002-12-15 17:37:19 +0100 |
commit | 33fa28e38a72da8feb89419fa6e2029a95a9aacf (patch) | |
tree | f50ec58f6dd2321d35a4a8edb7b7c6bb3c55f455 /modules/http | |
parent | it's not the MIME RFC, but the HTTP RFC ;-) (diff) | |
download | apache2-33fa28e38a72da8feb89419fa6e2029a95a9aacf.tar.xz apache2-33fa28e38a72da8feb89419fa6e2029a95a9aacf.zip |
don't segfault in mod_mime's find_ct() if we get there without having set r->filename
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97924 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http')
-rw-r--r-- | modules/http/mod_mime.c | 4 |
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 *)); |