summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2002-02-20 23:53:45 +0000
committerwtc%netscape.com <devnull@localhost>2002-02-20 23:53:45 +0000
commite59e24f8d94b9e7c4c26e45fff190cf7e6389a12 (patch)
treefe6128a94f07814cdad374210e483a9b1e59bee7
parent188b615215a008833dab40274ba3779f916da78f (diff)
downloadnss-hg-e59e24f8d94b9e7c4c26e45fff190cf7e6389a12.tar.gz
nscSlotHashTable is not protected by a lock, so we need to use
PL_HashTableLookupConst to do the lookups. r=mcgreer. This bug is discussed in bug 125149 but is not the main topic of that bug.
-rw-r--r--security/nss/lib/softoken/pkcs11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/softoken/pkcs11.c b/security/nss/lib/softoken/pkcs11.c
index ca989449a..2866d8bb2 100644
--- a/security/nss/lib/softoken/pkcs11.c
+++ b/security/nss/lib/softoken/pkcs11.c
@@ -1905,7 +1905,7 @@ static PLHashTable *nscSlotHashTable = NULL;
PK11Slot *
pk11_SlotFromID(CK_SLOT_ID slotID)
{
- return (PK11Slot *)PL_HashTableLookup(nscSlotHashTable, (void *)slotID);
+ return (PK11Slot *)PL_HashTableLookupConst(nscSlotHashTable, (void *)slotID);
}
PK11Slot *