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) {