aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnutls.c')
-rw-r--r--src/gnutls.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gnutls.c b/src/gnutls.c
index 577cca247ee..1cc258a5096 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -125,8 +125,13 @@ emacs_gnutls_read (int fildes, struct Lisp_Process *proc, char *buf,
125 rtnval = gnutls_read (state, buf, nbyte); 125 rtnval = gnutls_read (state, buf, nbyte);
126 if (rtnval >= 0) 126 if (rtnval >= 0)
127 return rtnval; 127 return rtnval;
128 else 128 else {
129 return -1; 129 if (rtnval == GNUTLS_E_AGAIN ||
130 rtnval == GNUTLS_E_INTERRUPTED)
131 return -1;
132 else
133 return 0;
134 }
130} 135}
131 136
132/* convert an integer error to a Lisp_Object; it will be either a 137/* convert an integer error to a Lisp_Object; it will be either a