mirror of
https://github.com/curl/curl.git
synced 2026-07-24 17:47:34 +03:00
nss: use the correct lock in nss_find_slot_by_name()
This commit is contained in:
parent
9ad034e5a1
commit
25ed9ea512
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue