From 203e2176fe046f9cdbf6bc46be03ef2c1a670f91 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik <serg@mariadb.org> Date: Fri, 15 Sep 2017 15:03:41 +0200 Subject: [PATCH] MDEV-13698 stack overflow (OpenSSL on Windows) avoid CRYPTO_free recursively calling itself on Windows --- mysys_ssl/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysys_ssl/openssl.c b/mysys_ssl/openssl.c index 34f4d629ba6..3f841eec92f 100644 --- a/mysys_ssl/openssl.c +++ b/mysys_ssl/openssl.c @@ -50,7 +50,7 @@ int check_openssl_compatibility() EVP_CIPHER_CTX *evp_ctx; EVP_MD_CTX *md5_ctx; - if (!CRYPTO_set_mem_functions(coc_malloc, CRYPTO_realloc, CRYPTO_free)) + if (!CRYPTO_set_mem_functions(coc_malloc, NULL, NULL)) return 1; testing= 1; -- 2.30.9