From e2358f910c6319aa455db31fbf584d8d814a3a33 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 d5334eb50..6d3cdc31c 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -444,7 +444,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]);