Commit 6583bdfc authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Corrected error handling for TLS connections

Closes: #2355
parent 0d8b0763
Pipeline #490 failed with stage
in 15 seconds
...@@ -192,7 +192,7 @@ static int connection_read_tls(connection_t *con, void *buf, size_t len) ...@@ -192,7 +192,7 @@ static int connection_read_tls(connection_t *con, void *buf, size_t len)
{ {
ssize_t bytes = tls_read(con->tls, buf, len); ssize_t bytes = tls_read(con->tls, buf, len);
if (bytes < 0) { if (bytes <= 0) {
if (tls_want_io(con->tls) > 0) if (tls_want_io(con->tls) > 0)
return -1; return -1;
con->error = 1; con->error = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment