Call CRYPTO_cleanup_all_ex_data() from OPENSSL_cleanup().
authorjsing <jsing@openbsd.org>
Sat, 11 Mar 2023 14:29:02 +0000 (14:29 +0000)
committerjsing <jsing@openbsd.org>
Sat, 11 Mar 2023 14:29:02 +0000 (14:29 +0000)
Issue reported by Graham Percival (@gperciva)

ok tb@

lib/libcrypto/crypto_init.c

index 69ba629..351b8ce 100644 (file)
@@ -77,6 +77,7 @@ OPENSSL_cleanup(void)
        /* This currently calls init... */
        ERR_free_strings();
 
+       CRYPTO_cleanup_all_ex_data();
        ENGINE_cleanup();
        EVP_cleanup();
        x509_issuer_cache_free();