mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
hf mf chk/fchk: don't stop on line errors when parsing dict
This commit is contained in:
parent
6ac9d2f0fb
commit
7076df0e18
1 changed files with 2 additions and 6 deletions
|
@ -1659,9 +1659,7 @@ static int CmdHF14AMfChk_fast(const char *Cmd) {
|
||||||
|
|
||||||
if (!isxdigit(buf[0])) {
|
if (!isxdigit(buf[0])) {
|
||||||
PrintAndLogEx(FAILED, "File content error. '" _YELLOW_("%s")"' must include 12 HEX symbols", buf);
|
PrintAndLogEx(FAILED, "File content error. '" _YELLOW_("%s")"' must include 12 HEX symbols", buf);
|
||||||
free(keyBlock);
|
continue;
|
||||||
fclose(f);
|
|
||||||
return PM3_EFILE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buf[12] = 0;
|
buf[12] = 0;
|
||||||
|
@ -1937,9 +1935,7 @@ static int CmdHF14AMfChk(const char *Cmd) {
|
||||||
// codesmell, only checks first char?
|
// codesmell, only checks first char?
|
||||||
if (!isxdigit(buf[0])) {
|
if (!isxdigit(buf[0])) {
|
||||||
PrintAndLogEx(FAILED, "File content error. '" _YELLOW_("%s")"' must include 12 HEX symbols", buf);
|
PrintAndLogEx(FAILED, "File content error. '" _YELLOW_("%s")"' must include 12 HEX symbols", buf);
|
||||||
free(keyBlock);
|
continue;
|
||||||
fclose(f);
|
|
||||||
return PM3_EFILE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buf[12] = 0;
|
buf[12] = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue