summaryrefslogtreecommitdiff
path: root/src/tls_timeoutio.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
commit20b85c03e751b4876fa3c92040464e483172b746 (patch)
tree734fadbfdbc143ec4465093857f4c239448715e0 /src/tls_timeoutio.c
parenta6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (diff)
manual format adjustment
Diffstat (limited to 'src/tls_timeoutio.c')
-rw-r--r--src/tls_timeoutio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tls_timeoutio.c b/src/tls_timeoutio.c
index 3a2936b..e97c858 100644
--- a/src/tls_timeoutio.c
+++ b/src/tls_timeoutio.c
@@ -57,8 +57,9 @@ int tls_timeoutaccept(int t, int rfd, int wfd, SSL *ssl)
if (r <= 0) {
ndelay_off(rfd);
ndelay_off(wfd);
- } else
+ } else {
SSL_set_mode(ssl, SSL_MODE_ENABLE_PARTIAL_WRITE);
+ }
return r;
}
@@ -74,8 +75,9 @@ int tls_timeoutconn(int t, int rfd, int wfd, SSL *ssl)
if (r <= 0) {
ndelay_off(rfd);
ndelay_off(wfd);
- } else
+ } else {
SSL_set_mode(ssl, SSL_MODE_ENABLE_PARTIAL_WRITE);
+ }
return r;
}