summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorian.mcgreer%sun.com <devnull@localhost>2002-02-11 23:12:00 +0000
committerian.mcgreer%sun.com <devnull@localhost>2002-02-11 23:12:00 +0000
commit82b0153f8df75f2dec98cb0bbff7ac49c6f72abb (patch)
treea4a965bc99fcee23a5eaf6a6b476eabac6dbfb3f
parente20726f91c43449d822ec500aeab1809a152cf20 (diff)
downloadnss-hg-82b0153f8df75f2dec98cb0bbff7ac49c6f72abb.tar.gz
bug 124446, thread safety issues with static oid hashtable.
r=wtc
-rw-r--r--security/nss/lib/util/secoid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/nss/lib/util/secoid.c b/security/nss/lib/util/secoid.c
index d6515dedb..d7a74ae7a 100644
--- a/security/nss/lib/util/secoid.c
+++ b/security/nss/lib/util/secoid.c
@@ -1033,7 +1033,7 @@ secoid_DynamicRehash(void)
for ( i = secoidLastHashEntry; i < last; i++ ) {
oid = secoidDynamicTable[i];
- entry = PL_HashTableAdd( oid_d_hash, &oid->oid.data, oid );
+ entry = PL_HashTableAdd( oid_d_hash, &oid->oid, oid );
if ( entry == NULL ) {
return(SECFailure);
}
@@ -1210,7 +1210,7 @@ SECOID_FindOIDByMechanism(unsigned long mechanism)
return NULL;
}
}
- ret = PL_HashTableLookup ( oidmechhash, (void *)mechanism);
+ ret = PL_HashTableLookupConst ( oidmechhash, (void *)mechanism);
if ( ret == NULL ) {
PORT_SetError(SEC_ERROR_LIBRARY_FAILURE);
}
@@ -1232,7 +1232,7 @@ SECOID_FindOID(SECItem *oid)
}
}
- ret = PL_HashTableLookup ( oidhash, oid );
+ ret = PL_HashTableLookupConst ( oidhash, oid );
if ( ret == NULL ) {
ret = secoid_FindDynamic(oid);
if (ret == NULL) {