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; }