aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r--src/daemon/daemon.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index 3020f08e..d220973e 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -399,6 +399,14 @@ recv_tls_adapter (struct MHD_Connection *connection, void *other, size_t i)
399 errno = EINTR; 399 errno = EINTR;
400 return -1; 400 return -1;
401 } 401 }
402 if (res < 0)
403 {
404 /* Likely 'GNUTLS_E_INVALID_SESSION' (client communication
405 disrupted); set errno to something caller will interpret
406 correctly as a hard error*/
407 errno = EPIPE;
408 return res;
409 }
402 return res; 410 return res;
403} 411}
404 412