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

Closes: #2355
This commit is contained in:
Philipp Schafft 2018-11-13 08:25:01 +00:00
parent 0d8b076336
commit 6583bdfc56

View File

@ -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;