Skip to content

Commit

Permalink
Revert "Fixed tls_read and tls_write to prevent a subsequent crash in…
Browse files Browse the repository at this point in the history
… SSL_shutdown when read/write errors occur."

This reverts commit 2a49238.
  • Loading branch information
vworkspace committed Jan 20, 2014
1 parent 4e31b9b commit 5ce6b78
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions libfreerdp/crypto/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 5ce6b78

Please sign in to comment.