1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

nss: use the correct lock in nss_find_slot_by_name()

This commit is contained in:
Kamil Dudka 2017-01-15 13:10:43 +01:00
parent 9ad034e5a1
commit 25ed9ea512

View File

@ -365,9 +365,9 @@ static char *dup_nickname(struct Curl_easy *data, const char *str)
static PK11SlotInfo* nss_find_slot_by_name(const char *slot_name) static PK11SlotInfo* nss_find_slot_by_name(const char *slot_name)
{ {
PK11SlotInfo *slot; PK11SlotInfo *slot;
PR_Lock(nss_initlock); PR_Lock(nss_findslot_lock);
slot = PK11_FindSlotByName(slot_name); slot = PK11_FindSlotByName(slot_name);
PR_Unlock(nss_initlock); PR_Unlock(nss_findslot_lock);
return slot; return slot;
} }