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
1 changed files with 2 additions and 2 deletions

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)
{
PK11SlotInfo *slot;
PR_Lock(nss_initlock);
PR_Lock(nss_findslot_lock);
slot = PK11_FindSlotByName(slot_name);
PR_Unlock(nss_initlock);
PR_Unlock(nss_findslot_lock);
return slot;
}