diff options
author | Ruediger Pluem <rpluem@apache.org> | 2024-10-01 14:11:09 +0200 |
---|---|---|
committer | Ruediger Pluem <rpluem@apache.org> | 2024-10-01 14:11:09 +0200 |
commit | cbadd6623686243f9b71a07557b017da65359ab6 (patch) | |
tree | 2b40f53cb22f9a4eb321e0096ccca2eb755ff725 /modules | |
parent | *) mod_http2: (diff) | |
download | apache2-cbadd6623686243f9b71a07557b017da65359ab6.tar.xz apache2-cbadd6623686243f9b71a07557b017da65359ab6.zip |
* Take care for the case where nkey is NULL
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1921067 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r-- | modules/cache/mod_cache_socache.c | 8 |
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) { |