From ba4e998cf4f5176c8f651d270d118685565bd6c1 Mon Sep 17 00:00:00 2001 From: Niels Ole Salscheider Date: Fri, 19 Dec 2014 11:41:34 +0100 Subject: [PATCH] Fix build with libressl --- src/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index c718e39f..ad066fab 100644 --- a/src/main.c +++ b/src/main.c @@ -978,12 +978,14 @@ main(int argc, char **argv) CRYPTO_cleanup_all_ex_data(); EVP_cleanup(); CONF_modules_free(); +#ifndef OPENSSL_NO_COMP COMP_zlib_cleanup(); +#endif ERR_remove_state(0); ERR_free_strings(); - { - sk_SSL_COMP_free(SSL_COMP_get_compression_methods()); - } +#ifndef OPENSSL_NO_COMP + sk_SSL_COMP_free(SSL_COMP_get_compression_methods()); +#endif /* end of OpenSSL cleanup code */ #if ENABLE_DBUS_1