summaryrefslogtreecommitdiff
path: root/mail/postfix/files/patch-src_posttls-finger_posttls-finger.c
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2016-08-29 19:23:49 +0000
committerBernard Spil <brnrd@FreeBSD.org>2016-08-29 19:23:49 +0000
commit2a819e64d934034a327de377de64c57317d00c94 (patch)
tree933d6a90914e950d4c4a1833b55f8709c4087ba8 /mail/postfix/files/patch-src_posttls-finger_posttls-finger.c
parentDocument mailman < 2.1.23 CVE-2016-6893, insufficient CSRF protection. (diff)
mail/postfix: Fix runtime issues with LibreSSL
- Add LibreSSL checks to <> 1.1.0 OpenSSL checks - Bump portrevision PR: 212223 Submitted by: Markus Kohlmeier <rootservice@gmail.com> Reported by: Markus Kohlmeier <rootservice@gmail.com> Approved by: ohauer (via PR) MFH: 2016Q3
Diffstat (limited to 'mail/postfix/files/patch-src_posttls-finger_posttls-finger.c')
-rw-r--r--mail/postfix/files/patch-src_posttls-finger_posttls-finger.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/mail/postfix/files/patch-src_posttls-finger_posttls-finger.c b/mail/postfix/files/patch-src_posttls-finger_posttls-finger.c
new file mode 100644
index 000000000000..10f2e2d22d87
--- /dev/null
+++ b/mail/postfix/files/patch-src_posttls-finger_posttls-finger.c
@@ -0,0 +1,22 @@
+--- src/posttls-finger/posttls-finger.c.orig 2016-08-27 20:27:50 UTC
++++ src/posttls-finger/posttls-finger.c
+@@ -1511,7 +1511,8 @@ static int finger(STATE *state)
+ return (0);
+ }
+
+-#if defined(USE_TLS) && OPENSSL_VERSION_NUMBER < 0x10100000L
++#if defined(USE_TLS) && \
++ ( OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) )
+
+ /* ssl_cleanup - free memory allocated in the OpenSSL library */
+
+@@ -1958,7 +1959,8 @@ int main(int argc, char *argv[])
+ cleanup(&state);
+
+ /* OpenSSL 1.1.0 and later (de)initialization is implicit */
+-#if defined(USE_TLS) && OPENSSL_VERSION_NUMBER < 0x10100000L
++#if defined(USE_TLS) && \
++ ( OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) )
+ ssl_cleanup();
+ #endif
+