There was a need to support thread ID types that couldn't be reliably cast
[oweals/openssl.git] / crypto / evp / evp_test.c
index bb6f02c2e9f9a208cb39d24e337af3158170de68..b8c9235d3e3f5328ae8f668491ea7c74dda2a495 100644 (file)
@@ -441,7 +441,7 @@ int main(int argc,char **argv)
 #endif
     EVP_cleanup();
     CRYPTO_cleanup_all_ex_data();
-    ERR_remove_state(0);
+    ERR_remove_thread_state(NULL);
     ERR_free_strings();
     CRYPTO_mem_leaks_fp(stderr);