Skip to content

Commit

Permalink
testing theory that unmatched atomic increment/decrement is causing o…
Browse files Browse the repository at this point in the history
…ccasional tinderbox failures. See bug 126087.
  • Loading branch information
ian.mcgreer%sun.com committed Apr 12, 2002
1 parent 954d936 commit 4f3224e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions security/nss/lib/pk11wrap/pk11skey.c
Expand Up @@ -286,9 +286,7 @@ PK11_FreeSymKey(PK11SymKey *symKey)
PK11SymKey *
PK11_ReferenceSymKey(PK11SymKey *symKey)
{
PK11_USE_THREADS(PZ_Lock(symKey->refLock);)
symKey->refCount++;
PK11_USE_THREADS(PZ_Unlock(symKey->refLock);)
PR_AtomicIncrement(&symKey->refCount);
return symKey;
}

Expand Down

0 comments on commit 4f3224e

Please sign in to comment.