RT4315: Fix UEFI build in crypto/init.c
[openssl.git] / crypto / init.c
index 25e3dc76932e89c54fd18f549ee65fbbdb14be53..c7eff8ba4ab51c88c736ac3d6e1d6e9739d8acaa 100644 (file)
@@ -270,7 +270,9 @@ static void ossl_init_base(void)
     fprintf(stderr, "OPENSSL_INIT: ossl_init_base: Setting up stop handlers\n");
 #endif
     ossl_init_setup_thread_stop();
     fprintf(stderr, "OPENSSL_INIT: ossl_init_base: Setting up stop handlers\n");
 #endif
     ossl_init_setup_thread_stop();
+#ifndef OPENSSL_SYS_UEFI
     atexit(OPENSSL_cleanup);
     atexit(OPENSSL_cleanup);
+#endif
     OPENSSL_cpuid_setup();
     base_inited = 1;
 }
     OPENSSL_cpuid_setup();
     base_inited = 1;
 }