From 5ce6b787ec00e9e5695afc10f3e43417a17fc89e Mon Sep 17 00:00:00 2001 From: Mike McDonald Date: Mon, 20 Jan 2014 11:09:45 -0500 Subject: [PATCH] Revert "Fixed tls_read and tls_write to prevent a subsequent crash in SSL_shutdown when read/write errors occur." This reverts commit 2a4923835143b4196ca7cafdaece687e93e79beb. --- libfreerdp/crypto/tls.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/libfreerdp/crypto/tls.c b/libfreerdp/crypto/tls.c index b6c11790c..a4d2c6f19 100644 --- a/libfreerdp/crypto/tls.c +++ b/libfreerdp/crypto/tls.c @@ -423,13 +423,6 @@ int tls_read(rdpTls* tls, BYTE* data, int length) } } - /* No need to send "close notify" shutdown alert to peer. In - fact, some circumstances will cause SSL_shutdown to crash. */ - if (status == -1) - { - SSL_set_shutdown(tls->ssl, SSL_SENT_SHUTDOWN); - } - return status; } @@ -481,13 +474,6 @@ int tls_write(rdpTls* tls, BYTE* data, int length) } } - /* No need to send "close notify" shutdown alert to peer. In - fact, some circumstances will cause SSL_shutdown to crash. */ - if (status == -1) - { - SSL_set_shutdown(tls->ssl, SSL_SENT_SHUTDOWN); - } - return status; }