summaryrefslogtreecommitdiff
path: root/usr.bin/dig/lib
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/dig/lib')
-rw-r--r--usr.bin/dig/lib/dns/openssl_link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/dig/lib/dns/openssl_link.c b/usr.bin/dig/lib/dns/openssl_link.c
index 5a271081b3e..c779adba756 100644
--- a/usr.bin/dig/lib/dns/openssl_link.c
+++ b/usr.bin/dig/lib/dns/openssl_link.c
@@ -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();
}