From 418c2e79313b367e64e47d38edd59f9f22a3b4fa Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sat, 11 Sep 2021 20:54:09 +0100 Subject: [PATCH] TLS build fix on OpenBSD when built with LibreSSL. (#9486) --- src/tls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tls.c b/src/tls.c index 7a802d7f0..fb2a575ea 100644 --- a/src/tls.c +++ b/src/tls.c @@ -176,7 +176,8 @@ void tlsCleanup(void) { redis_tls_client_ctx = NULL; } - #if OPENSSL_VERSION_NUMBER >= 0x10100000L + #if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) + // unavailable on LibreSSL OPENSSL_cleanup(); #endif }