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]); }