summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/nss/lib/pk11wrap/pk11slot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/security/nss/lib/pk11wrap/pk11slot.c b/security/nss/lib/pk11wrap/pk11slot.c
index c619ae003..15c5e561e 100644
--- a/security/nss/lib/pk11wrap/pk11slot.c
+++ b/security/nss/lib/pk11wrap/pk11slot.c
@@ -554,9 +554,8 @@ PK11_FindSlotsByNames(const char *dllName, const char* slotName,
(0==PORT_Strcmp(tmpSlot->token_name, tokenName)))) &&
( (!slotName) || (tmpSlot->slot_name &&
(0==PORT_Strcmp(tmpSlot->slot_name, slotName)))) ) {
- PK11SlotInfo* slot = PK11_ReferenceSlot(tmpSlot);
- if (slot) {
- PK11_AddSlotToList(slotList, slot);
+ if (tmpSlot) {
+ PK11_AddSlotToList(slotList, tmpSlot);
slotcount++;
}
}