Merge pull request #866 from bmiklautz/keychanged_segfault

transport: fix segfault if host key changed
This commit is contained in:
Marc-André Moreau 2012-12-20 08:02:39 -08:00
commit c8173c405d

View File

@ -118,7 +118,10 @@ BOOL transport_connect_tls(rdpTransport* transport)
connectErrorCode = TLSCONNECTERROR;
tls_free(transport->TlsIn);
transport->TlsIn = NULL;
if (transport->TlsIn == transport->TlsOut)
transport->TlsIn = transport->TlsOut = NULL;
else
transport->TlsIn = NULL;
return FALSE;
}