summaryrefslogtreecommitdiff
path: root/lib/dev
diff options
context:
space:
mode:
authorJohn M. Schanck <jschanck@mozilla.com>2022-04-28 20:53:02 +0000
committerJohn M. Schanck <jschanck@mozilla.com>2022-04-28 20:53:02 +0000
commit3732848dadd24de8211e7f5c658a819de32b5739 (patch)
tree8bd86369318c7c2a16aeb38083d29d87a229fa48 /lib/dev
parente502dd9798938520e6f6ff305429a500afa71a6e (diff)
downloadnss-hg-3732848dadd24de8211e7f5c658a819de32b5739.tar.gz
Bug 205717 - Use PK11_GetSlotInfo instead of raw C_GetSlotInfo calls. r=rrelyea
Differential Revision: https://phabricator.services.mozilla.com/D144633
Diffstat (limited to 'lib/dev')
-rw-r--r--lib/dev/devslot.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/dev/devslot.c b/lib/dev/devslot.c
index ccd90ac97..b28e7f313 100644
--- a/lib/dev/devslot.c
+++ b/lib/dev/devslot.c
@@ -172,10 +172,7 @@ nssSlot_IsTokenPresent(
goto done;
}
- nssSlot_EnterMonitor(slot);
- ckrv = CKAPI(epv)->C_GetSlotInfo(slot->slotID, &slotInfo);
- nssSlot_ExitMonitor(slot);
- if (ckrv != CKR_OK) {
+ if (PK11_GetSlotInfo(slot->pk11slot, &slotInfo) != SECSuccess) {
nssToken->base.name[0] = 0; /* XXX */
isPresent = PR_FALSE;
goto done;