1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-01-03 14:56:34 -05:00

Fix: Corrected error handling for TLS connections

See: #2355
This commit is contained in:
Philipp Schafft 2018-11-13 08:37:43 +00:00
parent a5feaa6b4c
commit 8662884447

View File

@ -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))
{