16 lines
593 B
Diff
16 lines
593 B
Diff
|
diff -up ./mozilla/security/nss/lib/nss/nssinit.c.800682 ./mozilla/security/nss/lib/nss/nssinit.c
|
||
|
--- ./mozilla/security/nss/lib/nss/nssinit.c.800682 2012-03-07 17:34:50.846174813 -0800
|
||
|
+++ ./mozilla/security/nss/lib/nss/nssinit.c 2012-03-07 17:36:12.545753433 -0800
|
||
|
@@ -1151,6 +1151,11 @@ SECStatus
|
||
|
NSS_Shutdown(void)
|
||
|
{
|
||
|
SECStatus rv;
|
||
|
+ /* make sure our lock and condition variable are initialized one and only
|
||
|
+ * one time */
|
||
|
+ if (PR_CallOnce(&nssInitOnce, nss_doLockInit) != PR_SUCCESS) {
|
||
|
+ return SECFailure;
|
||
|
+ }
|
||
|
PZ_Lock(nssInitLock);
|
||
|
|
||
|
if (!nssIsInitted) {
|