Do not do SSL_Shutdown if we have triggered a network error,

this will result in segfault in ssl.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1722 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Henrik Andersson 2013-06-27 10:43:34 +00:00
parent adbb6cf0fc
commit cab6380beb

3
tcp.c
View File

@ -530,7 +530,8 @@ tcp_disconnect(void)
{
if (g_ssl)
{
(void) SSL_shutdown(g_ssl);
if (!g_network_error)
(void) SSL_shutdown(g_ssl);
SSL_free(g_ssl);
g_ssl = NULL;
SSL_CTX_free(g_ssl_ctx);