Merge pull request #60 from open-amt-cloud-toolkit/fix_klockwork_opens

fix: klockwork reported success / failure check fix
This commit is contained in:
Mike
2021-07-21 10:39:29 -07:00
committed by GitHub

View File

@@ -282,8 +282,10 @@ bool cmd_get_certificate_hashes(std::vector<cert_hash_entry>& hash_entries)
for (int i = 0; i < (int) amt_hash_handles.Length; i++) for (int i = 0; i < (int) amt_hash_handles.Length; i++)
{ {
// get each entry // get each entry
AMT_STATUS status = pthi_GetCertificateHashEntry(amt_hash_handles.Handles[i], &certhash_entry); AMT_STATUS amt_status = pthi_GetCertificateHashEntry(amt_hash_handles.Handles[i], &certhash_entry);
if (amt_status == 0)
{
int hashSize; int hashSize;
cert_hash_entry tmp; cert_hash_entry tmp;
switch (certhash_entry.HashAlgorithm) { switch (certhash_entry.HashAlgorithm) {
@@ -329,6 +331,7 @@ bool cmd_get_certificate_hashes(std::vector<cert_hash_entry>& hash_entries)
hash_entries.push_back(tmp); hash_entries.push_back(tmp);
} }
} }
}
return true; return true;
} }