summaryrefslogtreecommitdiff
path: root/libmu_auth/tlsfdstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmu_auth/tlsfdstr.c')
-rw-r--r--libmu_auth/tlsfdstr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmu_auth/tlsfdstr.c b/libmu_auth/tlsfdstr.c
index 7db56a67e..be369a3e9 100644
--- a/libmu_auth/tlsfdstr.c
+++ b/libmu_auth/tlsfdstr.c
@@ -307,6 +307,8 @@ _tlsfd_read (struct _mu_stream *stream, char *buf, size_t bufsize,
return 0;
}
sp->tls_err = rc;
+ if (sp->tls_err == GNUTLS_E_TIMEDOUT)
+ return MU_ERR_TIMEOUT;
return MU_ERR_TLS;
}
@@ -330,6 +332,8 @@ _tlsfd_write (struct _mu_stream *stream, const char *buf, size_t bufsize,
return 0;
}
sp->tls_err = rc;
+ if (sp->tls_err == GNUTLS_E_TIMEDOUT)
+ return MU_ERR_TIMEOUT;
return MU_ERR_TLS;
}

Return to:

Send suggestions and report system problems to the System administrator.