fix issue #530 "NLA password asked after certificate refusal"
close connection when the certificate is not trusted
This commit is contained in:
parent
02439d3168
commit
26e49f2860
@ -115,8 +115,12 @@ boolean tls_connect(rdpTls* tls)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!tls_verify_certificate(tls, cert, tls->settings->hostname))
|
||||
if (!tls_verify_certificate(tls, cert, tls->settings->hostname)) {
|
||||
printf("tls_connect: certificate not trusted, aborting.\n");
|
||||
tls_disconnect(tls);
|
||||
tls_free_certificate(cert);
|
||||
return false;
|
||||
}
|
||||
|
||||
tls_free_certificate(cert);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user