summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjulien.pierre.boogz%sun.com <devnull@localhost>2008-02-19 23:53:30 +0000
committerjulien.pierre.boogz%sun.com <devnull@localhost>2008-02-19 23:53:30 +0000
commitfc6d9fa99d896b56563dc68559801550e20dd6ee (patch)
treee49a55ddba157b620a4d4bcdc648b100aad2cc1d
parent4fc3addd6f47f4f0ed1adee36a1db68071a2d8b9 (diff)
downloadnss-hg-fc6d9fa99d896b56563dc68559801550e20dd6ee.tar.gz
Fix for 403240 . threads hanging in nss_InitLock. More cleanup of secoid based on Wan-Teh's feedback.
-rw-r--r--security/nss/lib/util/secoid.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/security/nss/lib/util/secoid.c b/security/nss/lib/util/secoid.c
index 006f601b5..4de3430b1 100644
--- a/security/nss/lib/util/secoid.c
+++ b/security/nss/lib/util/secoid.c
@@ -1591,19 +1591,12 @@ static int dynOidEntriesAllocated;
static int dynOidEntriesUsed;
/* Creates NSSRWLock and dynOidPool at initialization time.
-** This function MIGHT create the lock, but not the pool, so
-** code should test for dynOidPool, not dynOidLock, when deciding
-** whether or not to call this function.
*/
static SECStatus
secoid_InitDynOidData(void)
{
SECStatus rv = SECSuccess;
- /* This function will create the lock if it doesn't exist,
- ** and will return the address of the lock, whether it was
- ** previously created, or was created by the function.
- */
dynOidLock = NSSRWLock_New(1, "dynamic OID data");
if (!dynOidLock) {
return SECFailure; /* Error code should already be set. */