mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
nss: use the correct lock in nss_find_slot_by_name()
This commit is contained in:
parent
9ad034e5a1
commit
25ed9ea512
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user