Merge pull request #3987 from chipitsine/cppcheck

resolve an issue found by cppcheck
This commit is contained in:
David Fort 2017-06-01 10:06:42 +02:00 committed by GitHub
commit c42ccb5087

View File

@ -312,9 +312,12 @@ static int certificate_data_match_raw(rdpCertificateStore* certificate_store,
if (port == certificate_data->port)
{
found = TRUE;
match = (strcmp(certificate_data->fingerprint, fingerprint) == 0) ? 0 : -1;
if (fingerprint && fprint)
*fprint = _strdup(fingerprint);
if (fingerprint)
{
match = (strcmp(certificate_data->fingerprint, fingerprint) == 0) ? 0 : -1;
if (fprint)
*fprint = _strdup(fingerprint);
}
if (subject && psubject)
crypto_base64_decode(subject, strlen(subject), (BYTE**)psubject, &outLen);
if (issuer && pissuer)