From f61ea3e01330d02d417b8d7a3a78124095ec5e66 Mon Sep 17 00:00:00 2001 From: "R. Christian McDonald" Date: Wed, 18 Oct 2023 20:49:35 -0400 Subject: [PATCH] curl: fix openssl double free during pkg_shutdown --- external/curl/lib/vtls/openssl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/external/curl/lib/vtls/openssl.c b/external/curl/lib/vtls/openssl.c index 9f9c8d136..c48603fdb 100644 --- a/external/curl/lib/vtls/openssl.c +++ b/external/curl/lib/vtls/openssl.c @@ -1704,6 +1704,9 @@ static int ossl_init(void) OPENSSL_INIT_NO_LOAD_CONFIG | #else OPENSSL_INIT_LOAD_CONFIG | +#endif +#ifdef OPENSSL_INIT_NO_ATEXIT + OPENSSL_INIT_NO_ATEXIT | #endif 0; OPENSSL_init_ssl(flags, NULL);