Fixed certificate check return.
This commit is contained in:
parent
ceda244165
commit
c301f2d56a
@ -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");
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user