Skip to content

Commit 203e217

Browse files
committed
MDEV-13698 stack overflow (OpenSSL on Windows)
avoid CRYPTO_free recursively calling itself on Windows
1 parent 50a8bee commit 203e217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysys_ssl/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int check_openssl_compatibility()
5050
EVP_CIPHER_CTX *evp_ctx;
5151
EVP_MD_CTX *md5_ctx;
5252

53-
if (!CRYPTO_set_mem_functions(coc_malloc, CRYPTO_realloc, CRYPTO_free))
53+
if (!CRYPTO_set_mem_functions(coc_malloc, NULL, NULL))
5454
return 1;
5555

5656
testing= 1;

0 commit comments

Comments
 (0)