Fixed certificate check return.

This commit is contained in:
Armin Novak 2017-07-18 12:43:55 +02:00
parent ceda244165
commit c301f2d56a
2 changed files with 4 additions and 2 deletions

View File

@ -586,7 +586,7 @@ BOOL certificate_read_server_x509_certificate_chain(rdpCertificate* certificate,
if ((numCertBlobs - i) == 2)
{
rdpCertInfo cert_info;
rdpCertInfo cert_info = { 0 };
DEBUG_CERTIFICATE("License Server Certificate");

View File

@ -184,7 +184,9 @@ static int certificate_data_match_legacy(rdpCertificateStore* certificate_store,
hostname, pline);
else if (strcmp(hostname, certificate_data->hostname) == 0)
{
match = strcmp(pline, certificate_data->fingerprint);
const int diff = strcmp(pline, certificate_data->fingerprint);
match = (diff == 0) ? 0 : -1;
break;
}
}