You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
425 B

  1. --- a/libmariadb/libmariadb/secure/openssl.c
  2. +++ b/libmariadb/libmariadb/secure/openssl.c
  3. @@ -419,8 +419,10 @@ void ma_tls_end()
  4. if (mariadb_deinitialize_ssl)
  5. {
  6. #ifndef HAVE_OPENSSL_1_1_API
  7. -#if OPENSSL_VERSION_NUMBER < 0x10100000L
  8. +#if OPENSSL_VERSION_NUMBER < 0x10000000L
  9. ERR_remove_state(0);
  10. +#else
  11. + ERR_remove_thread_state(NULL);
  12. #endif
  13. EVP_cleanup();
  14. CRYPTO_cleanup_all_ex_data();