From 68e105fb9ebfaf36703b8c040617d8424cbb3514 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 17 Dec 2014 11:44:10 -0500 Subject: [PATCH] deadlock fix --- daemon/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);