Skip to content

Commit

Permalink
Bug 1606992 - Permit sftk_PBELockInit being called multiple times. r=…
Browse files Browse the repository at this point in the history
…kjacobs

Differential Revision: https://phabricator.services.mozilla.com/D60236

--HG--
extra : moz-landing-system : lando
  • Loading branch information
kaie committed Jan 17, 2020
1 parent 5b7e4f9 commit 80595a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/softoken/lowpbe.c
Expand Up @@ -573,8 +573,9 @@ static struct {
void
sftk_PBELockInit(void)
{
PORT_Assert(!PBECache.lock);
PBECache.lock = PZ_NewLock(nssIPBECacheLock);
if (!PBECache.lock) {
PBECache.lock = PZ_NewLock(nssIPBECacheLock);
}
}

static void
Expand Down

0 comments on commit 80595a9

Please sign in to comment.