1
0
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:
Bill Stoddard
2002-04-30 00:06:16 +00:00
parent c94bb89387
commit 3e32f7de9a

View File

@@ -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--;