From bf74302679154bbd521d76849ff452db3c1d2b89 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 11 Dec 2017 22:49:44 +0100 Subject: [PATCH] chg: 'hf mf fchk' - reversing assumption. This really helped :) --- armsrc/mifarecmd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/armsrc/mifarecmd.c b/armsrc/mifarecmd.c index 62c8bdb42..2eebc9987 100644 --- a/armsrc/mifarecmd.c +++ b/armsrc/mifarecmd.c @@ -1319,10 +1319,11 @@ void MifareChkKeys_fast(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *da chkKey_scanB(&chk_data, k_sector, found, §orcnt, &foundkeys); } } - } // end loop - depth first - // assume1. if we already some keys, time to quit this keyblock? - if ( newfound-foundkeys > 0 ) + } // end keys test loop - depth first + + // assume1. if no keys found in first sector, get next keychunk from client + if ( newfound-foundkeys == 0 ) goto OUT; } // end loop - sector