Index: nss/lib/certhigh/ocsp.c |
diff --git a/nss/lib/certhigh/ocsp.c b/nss/lib/certhigh/ocsp.c |
index 59b341f1e8080e94dbc45523d9776d3e66c01b6a..86ae0a063b32910078f4d76cbf6a0469a234d0c0 100644 |
--- a/nss/lib/certhigh/ocsp.c |
+++ b/nss/lib/certhigh/ocsp.c |
@@ -559,14 +559,19 @@ ocsp_RemoveCacheItem(OCSPCacheData *cache, OCSPCacheItem *item) |
* because of an allocation failure, or it could get removed because we're |
* cleaning up. |
*/ |
- PRBool couldRemoveFromHashTable; |
OCSP_TRACE(("OCSP ocsp_RemoveCacheItem, THREADID %p\n", PR_GetCurrentThread())); |
PR_EnterMonitor(OCSP_Global.monitor); |
ocsp_RemoveCacheItemFromLinkedList(cache, item); |
- couldRemoveFromHashTable = PL_HashTableRemove(cache->entries, |
- item->certID); |
- PORT_Assert(couldRemoveFromHashTable); |
+#ifdef DEBUG |
+ { |
+ PRBool couldRemoveFromHashTable = PL_HashTableRemove(cache->entries, |
+ item->certID); |
+ PORT_Assert(couldRemoveFromHashTable); |
+ } |
+#else |
+ PL_HashTableRemove(cache->entries, item->certID); |
+#endif |
--cache->numberOfEntries; |
ocsp_FreeCacheItem(item); |
PR_ExitMonitor(OCSP_Global.monitor); |