From: Jaroslav Kysela Date: Tue, 22 Aug 2017 07:09:14 +0000 (+0200) Subject: main: cleanup fix for recent openssl library X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afb5b30b403285d4f1428a88144ff8c5d9ab717a;p=thirdparty%2Ftvheadend.git main: cleanup fix for recent openssl library --- 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 */