Fixed argument check in <tls_disconnect>

This commit is contained in:
Armin Novak 2013-11-14 10:09:40 +01:00
parent 31ffb498f8
commit 6f43252c9a

View File

@ -360,6 +360,9 @@ BOOL tls_accept(rdpTls* tls, const char* cert_file, const char* privatekey_file)
BOOL tls_disconnect(rdpTls* tls)
{
if (!tls)
return FALSE;
if (tls->ssl)
SSL_shutdown(tls->ssl);