]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
main: cleanup fix for recent openssl library
authorJaroslav Kysela <perex@perex.cz>
Tue, 22 Aug 2017 07:09:14 +0000 (09:09 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 18 Sep 2017 13:08:31 +0000 (15:08 +0200)
src/main.c

index 53c6be4bd8fe290605f7a67316dc2ad697de0ade..8678039f187bc8eceaaf81715fdc8fd38533a404 100644 (file)
@@ -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 */