Revert "Fixed tls_read and tls_write to prevent a subsequent crash in SSL_shutdown when read/write errors occur."

This reverts commit 2a49238351.
This commit is contained in:
Mike McDonald
2014-01-20 11:09:45 -05:00
parent 4e31b9bbb9
commit 5ce6b787ec

View File

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