Merge pull request #866 from bmiklautz/keychanged_segfault
transport: fix segfault if host key changed
This commit is contained in:
commit
c8173c405d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user