mirror of
https://github.com/apache/httpd.git
synced 2026-01-26 19:01:35 +03:00
remove_entity should only work on complete cache_objects
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94871 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -487,7 +487,7 @@ static int remove_entity(cache_handle_t *h)
|
||||
obj->cleanup = 1;
|
||||
obj = (cache_object_t *) apr_hash_get(sconf->cacheht, obj->key,
|
||||
APR_HASH_KEY_STRING);
|
||||
if (obj) {
|
||||
if (obj && obj->complete) {
|
||||
mem_cache_object_t *mobj = (mem_cache_object_t *) obj->vobj;
|
||||
apr_hash_set(sconf->cacheht, obj->key, strlen(obj->key), NULL);
|
||||
sconf->object_cnt--;
|
||||
|
||||
Reference in New Issue
Block a user