rand/rand_lib.c: keep fixing no-engine configuration.
authorAndy Polyakov <appro@openssl.org>
Sat, 8 Apr 2017 20:29:09 +0000 (22:29 +0200)
committerAndy Polyakov <appro@openssl.org>
Mon, 10 Apr 2017 10:09:59 +0000 (12:09 +0200)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit ce57ac431964f7692af674fd124103d6fe07af2e)

crypto/rand/rand_lib.c

index c1373e59426e6b4b0e9dbc6eb6b94f1068dc6b7b..62770d49d8cc0767d0a2a65a59eea0dc98fed662 100644 (file)
@@ -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)