1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

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
This commit is contained in:
Brian Pane
2002-12-15 16:37:19 +00:00
parent 022336ac72
commit 33fa28e38a
2 changed files with 7 additions and 0 deletions

View File

@@ -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 *));