Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Unified Diff: nss/mozilla/security/nss/lib/pk11wrap/pk11load.c

Issue 3135002: Update to NSS 3.12.7 and NSPR 4.8.6.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nss/mozilla/security/nss/lib/pk11wrap/pk11load.c
===================================================================
--- nss/mozilla/security/nss/lib/pk11wrap/pk11load.c (revision 55475)
+++ nss/mozilla/security/nss/lib/pk11wrap/pk11load.c (working copy)
@@ -139,9 +139,9 @@
char *newModuleSpec;
char **children;
CK_SLOT_ID *ids;
- SECStatus rv;
- SECMODConfigList *conflist;
- int count = 0;
+ SECMODConfigList *conflist = NULL;
+ SECStatus rv = SECFailure;
+ int count = 0;
/* first look for tokens= key words from the module spec */
modulespec = newModule->libraryParams;
@@ -424,7 +424,7 @@
PR_SUCCESS != PR_CallOnce(&loadSoftokenOnce, &softoken_LoadDSO))
return SECFailure;
- PR_AtomicIncrement(&softokenLoadCount);
+ PR_ATOMIC_INCREMENT(&softokenLoadCount);
if (mod->isFIPS) {
entry = (CK_C_GetFunctionList)
@@ -612,7 +612,7 @@
* mod->loaded = PR_FALSE; */
if (mod->internal) {
#if 0 /* STATIC LIBRARIES */
- if (0 == PR_AtomicDecrement(&softokenLoadCount)) {
+ if (0 == PR_ATOMIC_DECREMENT(&softokenLoadCount)) {
if (softokenLib) {
disableUnload = PR_GetEnv("NSS_DISABLE_UNLOAD");
if (!disableUnload) {

Powered by Google App Engine
This is Rietveld 408576698