From: Viktor Dukhovni Date: Thu, 17 Mar 2016 21:00:32 +0000 (-0400) Subject: Bitrot: OpenSSL 1.1.0 and later (de)initialization is implicit X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fd586a0a6686961cc6dfd0b0e8121e13a6b1d82;p=thirdparty%2Fpostfix.git Bitrot: OpenSSL 1.1.0 and later (de)initialization is implicit --- diff --git a/postfix/src/posttls-finger/posttls-finger.c b/postfix/src/posttls-finger/posttls-finger.c index 28aa5f1f1..fc0894641 100644 --- a/postfix/src/posttls-finger/posttls-finger.c +++ b/postfix/src/posttls-finger/posttls-finger.c @@ -1424,7 +1424,7 @@ static int finger(STATE *state) return (0); } -#ifdef USE_TLS +#if defined(USE_TLS) && OPENSSL_VERSION_NUMBER < 0x10100000L /* ssl_cleanup - free memory allocated in the OpenSSL library */ @@ -1442,7 +1442,7 @@ static void ssl_cleanup(void) CRYPTO_cleanup_all_ex_data(); } -#endif +#endif /* USE_TLS && OPENSSL_VERSION_NUMBER < 0x10100000L */ /* run - do what we were asked to do. */ @@ -1832,7 +1832,9 @@ int main(int argc, char *argv[]) /* Be valgrind friendly and clean-up */ cleanup(&state); -#ifdef USE_TLS + + /* OpenSSL 1.1.0 and later (de)initialization is implicit */ +#if defined(USE_TLS) && OPENSSL_VERSION_NUMBER < 0x10100000L ssl_cleanup(); #endif