There was a need to support thread ID types that couldn't be reliably cast
[openssl.git] / crypto / ecdh / ecdhtest.c
index 1575006b5161d8b6a36d7f789b79b64c9d3fb9bb..212a87efa4ef1d3da5db9a9b1b6d2542d6eb6c79 100644 (file)
@@ -343,7 +343,7 @@ err:
        if (ctx) BN_CTX_free(ctx);
        BIO_free(out);
        CRYPTO_cleanup_all_ex_data();
-       ERR_remove_state(0);
+       ERR_remove_thread_state(NULL);
        CRYPTO_mem_leaks_fp(stderr);
        EXIT(ret);
        return(ret);