From: Mark Andrews Date: Tue, 21 Mar 2023 03:29:46 +0000 (+1100) Subject: Don't check for OPENSSL_cleanup failures by default X-Git-Tag: v9.19.12~38^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3172c8f9c60eb79f23d2e2ba12f260a69a7097f;p=thirdparty%2Fbind9.git Don't check for OPENSSL_cleanup failures by default OPENSSL_cleanup is supposed to free all remaining memory in use provided the application has cleaned up properly. This is not the case on some operating systems. Silently ignore memory that is freed after OPENSSL_cleanup has been called. --- diff --git a/lib/isc/tls.c b/lib/isc/tls.c index 0e53775490f..d57cf98d1ef 100644 --- a/lib/isc/tls.c +++ b/lib/isc/tls.c @@ -77,7 +77,11 @@ isc__tls_set_thread_id(CRYPTO_THREADID *id) { } #endif +#ifdef ISC_TEST_OPENSSL_MEMORY_LEAKS static atomic_bool handle_fatal = false; +#else +static atomic_bool handle_fatal = true; +#endif #if !defined(LIBRESSL_VERSION_NUMBER) /*