From: Ruediger Pluem Date: Tue, 1 Oct 2024 12:11:09 +0000 (+0000) Subject: * Take care for the case where nkey is NULL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbadd6623686243f9b71a07557b017da65359ab6;p=thirdparty%2Fapache%2Fhttpd.git * 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 --- diff --git a/modules/cache/mod_cache_socache.c b/modules/cache/mod_cache_socache.c index 5f9e1d6c661..38f1bfb2793 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) {