[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 6bfa9e9: Build fix for older gnutls versions
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 6bfa9e9: Build fix for older gnutls versions |
Date: |
Wed, 25 Jan 2017 13:21:26 +0000 (UTC) |
branch: master
commit 6bfa9e9abca17290bc393d90aedb5abef83a3e06
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Build fix for older gnutls versions
* src/gnutls.c (emacs_gnutls_handle_error):
GNUTLS_E_PREMATURE_TERMINATION is apparently only present in
gnutls-3.
---
src/gnutls.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gnutls.c b/src/gnutls.c
index 6fa0e10..65b83ba 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -586,8 +586,10 @@ emacs_gnutls_handle_error (gnutls_session_t session, int
err)
/* Mostly ignore "The TLS connection was non-properly
terminated" message which just means that the peer closed the
connection. */
+#ifdef HAVE_GNUTLS3
if (err == GNUTLS_E_PREMATURE_TERMINATION)
level = 3;
+#endif
GNUTLS_LOG2 (level, max_log_level, "fatal error:", str);
ret = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 6bfa9e9: Build fix for older gnutls versions,
Lars Ingebrigtsen <=