mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-16 01:53:02 +08:00
fix: uint cant be negative..
This commit is contained in:
parent
ad3fe38b45
commit
8d9751ebe4
1 changed files with 4 additions and 2 deletions
|
@ -2129,9 +2129,11 @@ static int CmdT55xxChkPwds(const char *Cmd) {
|
|||
uint16_t keycount = 0;
|
||||
|
||||
int res = loadFileDICTIONARY_safe(filename, (void**) &keyBlock, 4, &keycount);
|
||||
if (res != PM3_SUCCESS || keycount <= 0 || keyBlock == NULL) {
|
||||
if (res != PM3_SUCCESS || keycount == 0 || keyBlock == NULL) {
|
||||
PrintAndLogEx(WARNING, "No keys found in file");
|
||||
if (keyBlock != NULL) free(keyBlock);
|
||||
if (keyBlock != NULL)
|
||||
free(keyBlock);
|
||||
|
||||
return PM3_ESOFT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue