diff options
author | André Malo <nd@apache.org> | 2004-04-04 01:22:18 +0200 |
---|---|---|
committer | André Malo <nd@apache.org> | 2004-04-04 01:22:18 +0200 |
commit | b4bf38ffc053f37dd13507078ec7b793200b23c7 (patch) | |
tree | 4a4224afac16cdebc571c4d94bf6504a111abcfb /modules/metadata/mod_expires.c | |
parent | no longer remove the EOS bucket (diff) | |
download | apache2-b4bf38ffc053f37dd13507078ec7b793200b23c7.tar.xz apache2-b4bf38ffc053f37dd13507078ec7b793200b23c7.zip |
fix segfault, which occurs if no CT is set and wildcards are used.
PR: 28047
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103266 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/metadata/mod_expires.c')
-rw-r--r-- | modules/metadata/mod_expires.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/metadata/mod_expires.c b/modules/metadata/mod_expires.c index 283c45f7ec..b70c123088 100644 --- a/modules/metadata/mod_expires.c +++ b/modules/metadata/mod_expires.c @@ -482,7 +482,7 @@ static apr_status_t expires_filter(ap_filter_t *f, char *checkmime; char *spos; checkmime = apr_pstrdup(r->pool, r->content_type); - spos = strchr(checkmime, '/'); + spos = checkmime ? ap_strchr(checkmime, '/') : NULL; if (spos != NULL) { /* * Without a '/' character, nothing we have will match. |