From 8c0aa0c86d8b59fabe214bafd94beb86e787540c Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 13 Aug 2018 22:37:44 +0200 Subject: [PATCH] FIX: 'hf mf chk' - chkkeys param error fix #1 --- client/cmdhfmf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index a080fe167..fb6634e47 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -1782,7 +1782,7 @@ int CmdHF14AMfChk(const char *Cmd) { // check keys. - for (trgKeyType = keyType; trgKeyType < 2; (keyType==2) ? (++trgKeyType) : (trgKeyType=2) ) { + for (trgKeyType = (keyType==2)?0:keyType; trgKeyType < 2; (keyType==2) ? (++trgKeyType) : (trgKeyType=2) ) { int b = blockNo; for (int i = 0; i < SectorsCnt; ++i) {