Skip to content

Commit

Permalink
* Take care for the case where nkey is NULL
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1921067 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rpluem committed Oct 1, 2024
1 parent 4c6d51c commit cbadd66
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/cache/mod_cache_socache.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,9 +700,11 @@ static int open_entity(cache_handle_t *h, request_rec *r, const char *key)
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) {
Expand Down

0 comments on commit cbadd66

Please sign in to comment.