aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gnutls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gnutls.c b/src/gnutls.c
index aa245ee5c39..4d5a909db0d 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -625,6 +625,8 @@ gnutls_try_handshake (struct Lisp_Process *proc)
625 625
626 while ((ret = gnutls_handshake (state)) < 0) 626 while ((ret = gnutls_handshake (state)) < 0)
627 { 627 {
628 if (gnutls_error_is_fatal (ret))
629 return emacs_gnutls_handle_error (state, ret);
628 do 630 do
629 ret = gnutls_handshake (state); 631 ret = gnutls_handshake (state);
630 while (ret == GNUTLS_E_INTERRUPTED); 632 while (ret == GNUTLS_E_INTERRUPTED);