summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornelsonb%netscape.com <devnull@localhost>2004-09-22 01:38:45 +0000
committernelsonb%netscape.com <devnull@localhost>2004-09-22 01:38:45 +0000
commitf1aa9bb164184e8ad9541de6f8e4ca4a5e110653 (patch)
tree50a20252fb7d1316faba222611a3f41e0b1df099
parentc99761ff70bbf889b312025db67c170e5c6ec0d7 (diff)
downloadnss-hg-f1aa9bb164184e8ad9541de6f8e4ca4a5e110653.tar.gz
Fix bug 260882 by clearing the valid cache flag
(named "searchedObjectType") even when the cache was empty. patch by kinnscp@aol.com
-rw-r--r--security/nss/lib/dev/devutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/dev/devutil.c b/security/nss/lib/dev/devutil.c
index 48847a74b..f3ca9b3ed 100644
--- a/security/nss/lib/dev/devutil.c
+++ b/security/nss/lib/dev/devutil.c
@@ -582,6 +582,7 @@ clear_cache (
nssCryptokiObjectAndAttributes **oa;
PRUint32 objectType;
for (objectType = cachedCerts; objectType <= cachedCRLs; objectType++) {
+ cache->searchedObjectType[objectType] = PR_FALSE;
if (!cache->objects[objectType]) {
continue;
}
@@ -593,7 +594,6 @@ clear_cache (
}
nss_ZFreeIf(cache->objects[objectType]);
cache->objects[objectType] = NULL;
- cache->searchedObjectType[objectType] = PR_FALSE;
}
}