summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/cache/mod_cache_socache.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/cache/mod_cache_socache.c b/modules/cache/mod_cache_socache.c
index 5f9e1d6c66..38f1bfb279 100644
--- a/modules/cache/mod_cache_socache.c
+++ b/modules/cache/mod_cache_socache.c
@@ -700,9 +700,11 @@ fail:
return DECLINED;
}
}
- conf->provider->socache_provider->remove(
- conf->provider->socache_instance, r->server,
- (unsigned char *) nkey, strlen(nkey), r->pool);
+ if (nkey) {
+ conf->provider->socache_provider->remove(
+ conf->provider->socache_instance, r->server,
+ (unsigned char *) nkey, strlen(nkey), r->pool);
+ }
if (socache_mutex) {
apr_status_t status = apr_global_mutex_unlock(socache_mutex);
if (status != APR_SUCCESS) {