diff --git a/libfreerdp/crypto/tls.c b/libfreerdp/crypto/tls.c index b7cda06df..4d5e8c4ca 100644 --- a/libfreerdp/crypto/tls.c +++ b/libfreerdp/crypto/tls.c @@ -400,7 +400,7 @@ int tls_read(rdpTls* tls, BYTE* data, int length) break; case SSL_ERROR_SYSCALL: - if (errno == EAGAIN) + if ((errno == EAGAIN) || (errno == 0)) { status = 0; }