From afb5b30b403285d4f1428a88144ff8c5d9ab717a Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 22 Aug 2017 09:09:14 +0200 Subject: [PATCH] main: cleanup fix for recent openssl library --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 769859ce0..fc73b1964 100644 --- a/src/main.c +++ b/src/main.c @@ -1352,12 +1352,12 @@ main(int argc, char **argv) CRYPTO_cleanup_all_ex_data(); EVP_cleanup(); CONF_modules_free(); -#ifndef OPENSSL_NO_COMP +#if !defined(OPENSSL_NO_COMP) COMP_zlib_cleanup(); #endif ERR_remove_state(0); ERR_free_strings(); -#ifndef OPENSSL_NO_COMP +#if !defined(OPENSSL_NO_COMP) && OPENSSL_VERSION_NUMBER < 0x1010006f sk_SSL_COMP_free(SSL_COMP_get_compression_methods()); #endif /* end of OpenSSL cleanup code */ -- 2.47.3