Fixed argument checks in <transport_disconnect>

This commit is contained in:
Armin Novak 2013-11-14 10:09:21 +01:00
parent 72770c8c43
commit 31ffb498f8

View File

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