From: Yann Ylavic Date: Sat, 29 Jul 2017 20:35:56 +0000 (+0000) Subject: mod_ssl: we can't use SSL_COMP_free_compression_methods() if OPENSSL_NO_COMP X-Git-Tag: 2.5.0-alpha~243 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36d01334ab8cb2127ff59ecac7cbfb17b3babf74;p=apache mod_ssl: we can't use SSL_COMP_free_compression_methods() if OPENSSL_NO_COMP is defined. PR 61206. Submitted by: Michael Schlenker git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1803392 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/mod_ssl.c b/modules/ssl/mod_ssl.c index 2e299e7b2f..dd34848c5f 100644 --- a/modules/ssl/mod_ssl.c +++ b/modules/ssl/mod_ssl.c @@ -348,7 +348,9 @@ static apr_status_t ssl_cleanup_pre_config(void *data) ENGINE_cleanup(); #endif #if OPENSSL_VERSION_NUMBER >= 0x1000200fL +#ifndef OPENSSL_NO_COMP SSL_COMP_free_compression_methods(); +#endif #endif /* Usually needed per thread, but this parent process is single-threaded */