From: Kamil Dudka Date: Sun, 15 Jan 2017 12:10:43 +0000 (+0100) Subject: nss: use the correct lock in nss_find_slot_by_name() X-Git-Tag: curl-7_53_0~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25ed9ea51257c0561237d1b725c4ff3d59b3f32c;p=thirdparty%2Fcurl.git nss: use the correct lock in nss_find_slot_by_name() --- diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c index a450703aab..aefe636eb2 100644 --- a/lib/vtls/nss.c +++ b/lib/vtls/nss.c @@ -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; }