diff --git a/daemon/main.c b/daemon/main.c index c22d557ab..38a048dca 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -375,7 +375,7 @@ static void cb_openssl_threadid(CRYPTO_THREADID *tid) { } static void cb_openssl_lock(int mode, int type, const char *file, int line) { - if ((type & CRYPTO_LOCK)) + if ((mode & CRYPTO_LOCK)) mutex_lock(&openssl_locks[type]); else mutex_unlock(&openssl_locks[type]);