From: Andy Polyakov Date: Sat, 8 Apr 2017 20:29:09 +0000 (+0200) Subject: rand/rand_lib.c: keep fixing no-engine configuration. X-Git-Tag: OpenSSL_1_1_0f~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d1ab3f5c87e44f9092f3eafe88dc5014e1af2f1;p=openssl rand/rand_lib.c: keep fixing no-engine configuration. Reviewed-by: Richard Levitte (cherry picked from commit ce57ac431964f7692af674fd124103d6fe07af2e) --- diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c index c1373e5942..62770d49d8 100644 --- a/crypto/rand/rand_lib.c +++ b/crypto/rand/rand_lib.c @@ -118,7 +118,9 @@ void rand_cleanup_int(void) meth->cleanup(); RAND_set_rand_method(NULL); CRYPTO_THREAD_lock_free(rand_meth_lock); +#ifndef OPENSSL_NO_ENGINE CRYPTO_THREAD_lock_free(rand_engine_lock); +#endif } void RAND_seed(const void *buf, int num)