From efb833f342db7b0ac66cf1169f0d6f44240822df Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 8 Nov 2011 17:57:21 +0100 Subject: [PATCH] crypto: use the right mutex --- src/node_crypto.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 1dc76ffdfe9..26baf43566e 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -102,9 +102,9 @@ static void crypto_lock_init(void) { static void crypto_lock_cb(int mode, int n, const char* file, int line) { if (mode & CRYPTO_LOCK) - WaitForSingleObject(locks[type], INFINITE); + WaitForSingleObject(locks[n], INFINITE); else - ReleaseMutex(locks[type]); + ReleaseMutex(locks[n]); }