Merge pull request #167 from mfleisz/disconnect_fix

transport: Leaking socket on disconnect when using TLS transport layer
This commit is contained in:
Otavio Salvador 2011-10-20 05:55:06 -07:00
commit 4925734c6f

View File

@ -71,9 +71,8 @@ void transport_attach(rdpTransport* transport, int sockfd)
boolean transport_disconnect(rdpTransport* transport)
{
if (transport->layer == TRANSPORT_LAYER_TLS)
return tls_disconnect(transport->tls);
else
return tcp_disconnect(transport->tcp);
tls_disconnect(transport->tls);
return tcp_disconnect(transport->tcp);
}
boolean transport_connect_rdp(rdpTransport* transport)