Skip to content

Commit cbadd66

Browse files
committed
* 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
1 parent 4c6d51c commit cbadd66

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/cache/mod_cache_socache.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -700,9 +700,11 @@ static int open_entity(cache_handle_t *h, request_rec *r, const char *key)
700700
return DECLINED;
701701
}
702702
}
703-
conf->provider->socache_provider->remove(
704-
conf->provider->socache_instance, r->server,
705-
(unsigned char *) nkey, strlen(nkey), r->pool);
703+
if (nkey) {
704+
conf->provider->socache_provider->remove(
705+
conf->provider->socache_instance, r->server,
706+
(unsigned char *) nkey, strlen(nkey), r->pool);
707+
}
706708
if (socache_mutex) {
707709
apr_status_t status = apr_global_mutex_unlock(socache_mutex);
708710
if (status != APR_SUCCESS) {

0 commit comments

Comments
 (0)