Remove unsafe call to OPENSSL_cpuid_setup
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 11 Jan 2022 11:10:35 +0000 (12:10 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 11 Jan 2022 11:10:35 +0000 (12:10 +0100)
This function is inherently thread-unsafe,
and moreover it is unnecessary here, because
OPENSSL_init_crypto always calls it in a thread-safe way.

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

crypto/engine/eng_all.c

index b675ed7892e27389d0095834b10bda0adeb2dddf..c570aeda3de14a6a42faea35f68c8e7ba9de20df 100644 (file)
@@ -12,9 +12,6 @@
 
 void ENGINE_load_builtin_engines(void)
 {
-    /* Some ENGINEs need this */
-    OPENSSL_cpuid_setup();
-
     OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL);
 }