deadlock fix

pull/53/head
Richard Fuchs 11 years ago
parent 935487b663
commit dcfd7032b2

@ -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) { 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]); mutex_lock(&openssl_locks[type]);
else else
mutex_unlock(&openssl_locks[type]); mutex_unlock(&openssl_locks[type]);

Loading…
Cancel
Save