From 15964b74c01d28907de3b2d9e5b5b6e5ebc04b08 Mon Sep 17 00:00:00 2001 From: Nick Wallingford Date: Fri, 23 Dec 2016 13:58:38 -0800 Subject: [PATCH] Fix link failure against libressl. --- src/lib-ssl-iostream/dovecot-openssl-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-ssl-iostream/dovecot-openssl-common.c b/src/lib-ssl-iostream/dovecot-openssl-common.c index 2bf6307ffa..584eaf3986 100644 --- a/src/lib-ssl-iostream/dovecot-openssl-common.c +++ b/src/lib-ssl-iostream/dovecot-openssl-common.c @@ -101,7 +101,7 @@ bool dovecot_openssl_common_global_unref(void) ERR_remove_thread_state(NULL); #endif ERR_free_strings(); -#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined (LIBRESSL_VERSION_NUMBER) OPENSSL_cleanup(); #endif return FALSE; -- 2.47.3