diff options
author | Ian Holsman <ianh@apache.org> | 2002-08-26 18:41:56 +0200 |
---|---|---|
committer | Ian Holsman <ianh@apache.org> | 2002-08-26 18:41:56 +0200 |
commit | cd84b43a795022f1f02ecdb2cf6762a3bc93eefe (patch) | |
tree | 573086def90d651773fdee07ca23db48d5a8e5c7 /modules | |
parent | Turn off optimization completely when building debug (diff) | |
download | apache2-cd84b43a795022f1f02ecdb2cf6762a3bc93eefe.tar.xz apache2-cd84b43a795022f1f02ecdb2cf6762a3bc93eefe.zip |
Fix a segfault in mod_cache when url isn't passed
Submitted by: Kris Verbeeck <Kris.Verbeeck@ubizen.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96532 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r-- | modules/experimental/cache_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/experimental/cache_util.c b/modules/experimental/cache_util.c index 19262afaa4..5bb43922d9 100644 --- a/modules/experimental/cache_util.c +++ b/modules/experimental/cache_util.c @@ -104,6 +104,9 @@ CACHE_DECLARE(const char *)ap_cache_get_cachetype(request_rec *r, const char *type = NULL; int i; + /* we can't cache if there's no URL */ + if (!url) return NULL; + /* loop through all the cacheenable entries */ for (i = 0; i < conf->cacheenable->nelts; i++) { struct cache_enable *ent = |