Merge pull request #1593 from akallabeth/transport_fixes
Transport disconnect fixes
This commit is contained in:
commit
c347dd0843
@ -74,6 +74,9 @@ BOOL transport_disconnect(rdpTransport* transport)
|
||||
{
|
||||
BOOL status = TRUE;
|
||||
|
||||
if (!transport)
|
||||
return FALSE;
|
||||
|
||||
if (transport->layer == TRANSPORT_LAYER_TLS)
|
||||
status &= tls_disconnect(transport->TlsIn);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user