]> 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>
Tue, 22 Aug 2017 08:14:58 +0000 (10:14 +0200)
src/main.c

index 769859ce0c6507bbfbd8939484139c2f6b3b8cff..fc73b19645fdc590e50b099e7a0d0c56f943c1d1 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 */