]> granicus.if.org Git - libevent/commitdiff
sample/https-client: replace ERR_remove_state() by ERR_remove_thread_state()
authorAzat Khuzhin <a3at.mail@gmail.com>
Tue, 10 Nov 2015 17:29:33 +0000 (20:29 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Wed, 18 Nov 2015 12:39:08 +0000 (15:39 +0300)
Since ERR_remove_state() is deprecated:
  $ git log --grep ERR_remove_thread_state
  commit 2ecd2ededece66bf090fefc93ef3ddb672d9e71a
  Author: Bodo Möller <bodo@openssl.org>
  Date:   Wed Aug 13 19:30:01 2008 +0000

      Mention ERR_remove_state() deprecation, and ERR_remove_thread_state(NULL).

Link: https://www.openssl.org/docs/manmaster/crypto/ERR_remove_state.html
sample/https-client.c

index d0f9d070c710f42e7608dfce2d34e3e2b0942f46..c28a4ad8d078affff4fc602a715a04c6994b8aa2 100644 (file)
@@ -471,7 +471,7 @@ cleanup:
        EVP_cleanup();
        ERR_free_strings();
 
-       ERR_remove_state(0);
+       ERR_remove_thread_state(NULL);
        CRYPTO_cleanup_all_ex_data();
 
        sk_SSL_COMP_free(SSL_COMP_get_compression_methods());