fix issue #530 "NLA password asked after certificate refusal"

close connection when the certificate is not trusted
This commit is contained in:
Raphaël Rigo 2012-04-10 22:24:08 +02:00
parent 02439d3168
commit 26e49f2860

View File

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