From: wessels <> Date: Sat, 21 Jun 1997 10:55:58 +0000 (+0000) Subject: Object might be validated between being added to validation list and X-Git-Tag: SQUID_3_0_PRE1~4917 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c340827ebf10b954919ec1bc22a8ee849d121ff5;p=thirdparty%2Fsquid.git Object might be validated between being added to validation list and when storeValidate is called. --- diff --git a/src/store.cc b/src/store.cc index 44c7c4e87c..e0fdcc0d0a 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.261 1997/06/20 00:00:16 wessels Exp $ + * $Id: store.cc,v 1.262 1997/06/21 04:55:58 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -1469,8 +1469,7 @@ storeCleanup(void *data) curr = list; list = list->next; e = (StoreEntry *) hash_lookup(store_table, curr->key); - if (e != NULL) { - assert(!BIT_TEST(e->flag, ENTRY_VALIDATED)); + if (e && !BIT_TEST(e->flag, ENTRY_VALIDATED)) { storeLockObject(e); storeValidate(e, storeCleanupComplete, e); if ((++validnum & 0xFFF) == 0)