mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
[NSS] Avoid potential data race on primary password change.
This commit is contained in:
parent
b9084ea29d
commit
a77cf423c2
2 changed files with 17 additions and 3 deletions
|
|
@ -998,7 +998,11 @@ done:
|
|||
SECStatus
|
||||
sftkdb_PWCached(SFTKDBHandle *keydb)
|
||||
{
|
||||
return keydb->passwordKey.data ? SECSuccess : SECFailure;
|
||||
SECStatus rv;
|
||||
PZ_Lock(keydb->passwordLock);
|
||||
rv = keydb->passwordKey.data ? SECSuccess : SECFailure;
|
||||
PZ_Unlock(keydb->passwordLock);
|
||||
return rv;
|
||||
}
|
||||
|
||||
static CK_RV
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue