From: Jaroslav Kysela Date: Tue, 22 Aug 2017 07:09:14 +0000 (+0200) Subject: main: cleanup fix for recent openssl library X-Git-Tag: v4.2.4~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cb7fcac1dc7108d148c1dba6c771a3923b69d65;p=thirdparty%2Ftvheadend.git main: cleanup fix for recent openssl library --- diff --git a/src/main.c b/src/main.c index 53c6be4bd..8678039f1 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 */