aboutsummaryrefslogtreecommitdiffstats
path: root/main/dovecot/libressl.patch
blob: 02cd08c87baa7139dbdf1a2769855fb63c7efcd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/lib-ssl-iostream/dovecot-openssl-common.c
+++ b/src/lib-ssl-iostream/dovecot-openssl-common.c
@@ -101,7 +101,7 @@
 	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;