From f338e1f6c39bf2dc5b2aea5c38ce609146bfc18d Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Tue, 25 Nov 2014 18:58:36 +0100 Subject: [PATCH] crypto: revert pull request #2130 The fix in #2130 eliminates the problem when connecting over a gateway but introduces other problems server side and client side (client/server can't detect anymore when a TCP connection was closed). --- libfreerdp/crypto/tls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libfreerdp/crypto/tls.c b/libfreerdp/crypto/tls.c index 22522956d..9f52e6d62 100644 --- a/libfreerdp/crypto/tls.c +++ b/libfreerdp/crypto/tls.c @@ -167,8 +167,7 @@ static int bio_rdp_tls_read(BIO* bio, char* buf, int size) case SSL_ERROR_SYSCALL: error = WSAGetLastError(); if ((error == WSAEWOULDBLOCK) || (error == WSAEINTR) || - (error == WSAEINPROGRESS) || (error == WSAEALREADY) || - (error == 0)) + (error == WSAEINPROGRESS) || (error == WSAEALREADY)) { BIO_set_flags(bio, (BIO_FLAGS_READ | BIO_FLAGS_SHOULD_RETRY)); }