From dc3be1486db0ef7d82f18a4f92de8f8df56c83fb Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Thu, 20 Jun 2013 11:10:24 +0000 Subject: [PATCH] Bring back reset of g_ssl on reset_state() git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1719 423420c4-83ab-492f-b58f-81f9feb106b5 --- tcp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tcp.c b/tcp.c index 106bd1a..5d4ff09 100644 --- a/tcp.c +++ b/tcp.c @@ -123,6 +123,9 @@ tcp_send(STREAM s) int length = s->end - s->data; int sent, total = 0; + if (g_network_error) + return; + #ifdef WITH_SCARD scard_lock(SCARD_LOCK_TCP); #endif @@ -192,6 +195,9 @@ tcp_recv(STREAM s, uint32 length) uint32 new_length, end_offset, p_offset; int rcvd = 0, ssl_err; + if (g_network_error) + return NULL; + if (s == NULL) { /* read into "new" stream */