mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-22 13:10:43 +08:00
Added additional checks (loadFileDICTIONARY_safe).
This commit is contained in:
parent
ae7b0de2c9
commit
1ce10cfea6
1 changed files with 1 additions and 1 deletions
|
@ -2129,7 +2129,7 @@ static int CmdT55xxChkPwds(const char *Cmd) {
|
|||
uint16_t keycount = 0;
|
||||
|
||||
int res = loadFileDICTIONARY_safe(filename, &keyBlock, 4, &keycount);
|
||||
if (res || keycount <= 0 || keyBlock == NULL) {
|
||||
if (res != PM3_SUCCESS || keycount <= 0 || keyBlock == NULL) {
|
||||
PrintAndLogEx(WARNING, "No keys found in file");
|
||||
if (keyBlock != NULL) free(keyBlock);
|
||||
return PM3_ESOFT;
|
||||
|
|
Loading…
Add table
Reference in a new issue