From 7076df0e18455e21bb037abd89d039348934c235 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Mon, 26 Aug 2019 13:53:23 +0200 Subject: [PATCH] hf mf chk/fchk: don't stop on line errors when parsing dict --- client/cmdhfmf.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index b2e4b9855..afb369de3 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -1659,9 +1659,7 @@ static int CmdHF14AMfChk_fast(const char *Cmd) { if (!isxdigit(buf[0])) { PrintAndLogEx(FAILED, "File content error. '" _YELLOW_("%s")"' must include 12 HEX symbols", buf); - free(keyBlock); - fclose(f); - return PM3_EFILE; + continue; } buf[12] = 0; @@ -1937,9 +1935,7 @@ static int CmdHF14AMfChk(const char *Cmd) { // codesmell, only checks first char? if (!isxdigit(buf[0])) { PrintAndLogEx(FAILED, "File content error. '" _YELLOW_("%s")"' must include 12 HEX symbols", buf); - free(keyBlock); - fclose(f); - return PM3_EFILE; + continue; } buf[12] = 0;