The slightly less deprecated spelling of ERR_remove_state(0) is
authortb <tb@openbsd.org>
Sun, 26 Mar 2023 17:51:25 +0000 (17:51 +0000)
committertb <tb@openbsd.org>
Sun, 26 Mar 2023 17:51:25 +0000 (17:51 +0000)
ERR_remove_thread_state(NULL).

usr.bin/dig/lib/dns/openssl_link.c

index 5a27108..c779adb 100644 (file)
@@ -61,7 +61,7 @@ dst__openssl_destroy(void) {
        EVP_cleanup();
        CRYPTO_cleanup_all_ex_data();
        ERR_clear_error();
-       ERR_remove_state(0);
+       ERR_remove_thread_state(NULL);
        ERR_free_strings();
 
 }