Commit 86628844 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Corrected error handling for TLS connections

See: #2355
parent a5feaa6b
......@@ -253,7 +253,7 @@ static int connection_read_ssl (connection_t *con, void *buf, size_t len)
{
int bytes = SSL_read (con->ssl, buf, len);
if (bytes < 0)
if (bytes <= 0)
{
switch (SSL_get_error (con->ssl, bytes))
{
......
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