From: Richard Levitte Date: Thu, 7 Feb 2002 21:49:21 +0000 (+0000) Subject: Oops, do not unlock CRYPTO_LOCK_DYNLOCK when we locked X-Git-Tag: OpenSSL_0_9_7-beta1~255 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3537525e00a185356bb6c38256cce32db3f782ae;p=openssl Oops, do not unlock CRYPTO_LOCK_DYNLOCK when we locked CRYPTO_LOCK_RAND... --- diff --git a/crypto/engine/hw_aep.c b/crypto/engine/hw_aep.c index 78caef4d07..c661dfa14d 100644 --- a/crypto/engine/hw_aep.c +++ b/crypto/engine/hw_aep.c @@ -700,7 +700,7 @@ static int aep_rand(unsigned char *buf,int len ) return 1; err: - CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK); + CRYPTO_w_unlock(CRYPTO_LOCK_RAND); err_nounlock: return 0; }