mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user