Gitweb:
https://git.exim.org/exim.git/commitdiff/e447a470aae2e45fc80bfb14a77b06e6f57f4d5c
Commit: e447a470aae2e45fc80bfb14a77b06e6f57f4d5c
Parent: f6fa370ab8cc56cf06e906a1a2c714d196aac81b
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Jun 11 21:52:28 2020 +0100
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Thu Jun 11 21:52:28 2020 +0100
GnuTLS: fix build on older library versions
---
src/src/tls-gnu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c
index eff9e88..df520e8 100644
--- a/src/src/tls-gnu.c
+++ b/src/src/tls-gnu.c
@@ -427,10 +427,12 @@ uschar * errstr;
msg = rc == GNUTLS_E_FATAL_ALERT_RECEIVED
? string_sprintf("A TLS fatal alert has been received: %s",
US gnutls_alert_get_name(gnutls_alert_get(state->session)))
+#ifdef GNUTLS_E_PREMATURE_TERMINATION
: rc == GNUTLS_E_PREMATURE_TERMINATION && errno
? errno == ECONNRESET /* Outlook does this to us right after sending us QUIT */
? string_sprintf("syscall: %s", strerror(errno))
: string_sprintf("%s: syscall: %s", US gnutls_strerror(rc), strerror(errno))
+#endif
: US gnutls_strerror(rc);
(void) tls_error(when, msg, state->host, &errstr);