mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
fix coverity #322661
This commit is contained in:
parent
b217b4e39d
commit
b24d7736c5
1 changed files with 4 additions and 0 deletions
|
@ -641,6 +641,10 @@ static int CmdFlashMemInfo(const char *Cmd) {
|
||||||
// Verify (public key)
|
// Verify (public key)
|
||||||
bool is_verified = (mbedtls_rsa_pkcs1_verify(rsa, NULL, NULL, MBEDTLS_RSA_PUBLIC, MBEDTLS_MD_SHA1, 20, sha_hash, from_device) == 0);
|
bool is_verified = (mbedtls_rsa_pkcs1_verify(rsa, NULL, NULL, MBEDTLS_RSA_PUBLIC, MBEDTLS_MD_SHA1, 20, sha_hash, from_device) == 0);
|
||||||
|
|
||||||
|
if (got_private == false) {
|
||||||
|
mbedtls_rsa_free(rsa);
|
||||||
|
}
|
||||||
|
|
||||||
mbedtls_pk_free(&pkctx);
|
mbedtls_pk_free(&pkctx);
|
||||||
|
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue