]> granicus.if.org Git - apache/commitdiff
mod_ssl: we can't use SSL_COMP_free_compression_methods() if OPENSSL_NO_COMP
authorYann Ylavic <ylavic@apache.org>
Sat, 29 Jul 2017 20:35:56 +0000 (20:35 +0000)
committerYann Ylavic <ylavic@apache.org>
Sat, 29 Jul 2017 20:35:56 +0000 (20:35 +0000)
is defined.  PR 61206.

Submitted by: Michael Schlenker <msc contact.de>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1803392 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/mod_ssl.c

index 2e299e7b2f8575f6087a204efa4a36c23630345e..dd34848c5fb8c91e7e7dce666d8dc93c61b74ad5 100644 (file)
@@ -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 */