mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
coverity fixes
This commit is contained in:
parent
a9e3c2779e
commit
6d329a0462
1 changed files with 2 additions and 0 deletions
|
@ -956,6 +956,7 @@ static int CmdHFiClassDecrypt(const char *Cmd) {
|
||||||
|
|
||||||
if (keylen != 16) {
|
if (keylen != 16) {
|
||||||
PrintAndLogEx(ERR, "Failed to load transport key from file");
|
PrintAndLogEx(ERR, "Failed to load transport key from file");
|
||||||
|
free(keyptr);
|
||||||
return PM3_EINVARG;
|
return PM3_EINVARG;
|
||||||
}
|
}
|
||||||
memcpy(key, keyptr, sizeof(key));
|
memcpy(key, keyptr, sizeof(key));
|
||||||
|
@ -1175,6 +1176,7 @@ static int CmdHFiClassEncryptBlk(const char *Cmd) {
|
||||||
|
|
||||||
if (keylen != 16) {
|
if (keylen != 16) {
|
||||||
PrintAndLogEx(ERR, "Failed to load transport key from file");
|
PrintAndLogEx(ERR, "Failed to load transport key from file");
|
||||||
|
free(keyptr);
|
||||||
return PM3_EINVARG;
|
return PM3_EINVARG;
|
||||||
}
|
}
|
||||||
memcpy(key, keyptr, sizeof(key));
|
memcpy(key, keyptr, sizeof(key));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue