From dcfd7032b2484a6730a654ad37cf0cbb9ccb3e96 Mon Sep 17 00:00:00 2001 From: Richard Fuchs <rfuchs@sipwise.com> 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 5815af98e..16f4786ee 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -452,7 +452,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]);