Permalink
Browse files

crypto: use the right mutex

  • Loading branch information...
1 parent 409915e commit efb833f342db7b0ac66cf1169f0d6f44240822df @bnoordhuis bnoordhuis committed Nov 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/node_crypto.cc
View
@@ -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]);
}

0 comments on commit efb833f

Please sign in to comment.