]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/init.c
Cygwin: enable the use of Dl_info and dladdr()
[thirdparty/openssl.git] / crypto / init.c
index 8755e2164f54a68123ea50224e45d431e225b158..d5f0ebd7b75d5f98ddc3a6859cb20fa2fdb940aa 100644 (file)
@@ -428,8 +428,6 @@ void OPENSSL_cleanup(void)
         err_free_strings_int();
     }
 
-    ossl_cleanup_thread();
-
     /*
      * Note that cleanup order is important:
      * - rand_cleanup_int could call an ENGINE's RAND cleanup function so
@@ -457,6 +455,8 @@ void OPENSSL_cleanup(void)
     OSSL_TRACE(INIT, "OPENSSL_cleanup: openssl_ctx_default_deinit()\n");
     openssl_ctx_default_deinit();
 
+    ossl_cleanup_thread();
+
     OSSL_TRACE(INIT, "OPENSSL_cleanup: bio_cleanup()\n");
     bio_cleanup();