Don't try to clean up RAND from ENGINE
authorRichard Levitte <levitte@openssl.org>
Thu, 6 Apr 2017 13:58:38 +0000 (15:58 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 7 Apr 2017 02:55:16 +0000 (04:55 +0200)
This is especially harmful since OPENSSL_cleanup() has already called
the RAND cleanup function

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3137)

crypto/engine/eng_lib.c

index 385af54919fbc9789c271b74fb15f19c74a2ef54..6f422bd77e8a3675a780a3bb78aab36910c8c862 100644 (file)
@@ -166,11 +166,6 @@ void engine_cleanup_int(void)
                                         engine_cleanup_cb_free);
         cleanup_stack = NULL;
     }
-    /*
-     * FIXME: This should be handled (somehow) through RAND, eg. by it
-     * registering a cleanup callback.
-     */
-    RAND_set_rand_method(NULL);
     CRYPTO_THREAD_lock_free(global_engine_lock);
 }