From f4011f328383b8f8dc3cead7e1020df1fccda208 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 13 Jun 2022 07:27:05 +0200 Subject: [PATCH] fix test sequence --- client/src/cmdhfmf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 2847f0843..b98e7bc1f 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -2510,12 +2510,12 @@ noValidKeyFound: for (current_sector_i = 0; current_sector_i < sector_cnt; current_sector_i++) { for (current_key_type_i = 0; current_key_type_i < 2; current_key_type_i++) { - if (has_staticnonce == NONCE_STATIC) - goto tryStaticnested; - // If the key is already known, just skip it if (e_sector[current_sector_i].foundKey[current_key_type_i] == 0) { + if (has_staticnonce == NONCE_STATIC) + goto tryStaticnested; + // Try the found keys are reused if (bytes_to_num(tmp_key, 6) != 0) { // The fast check --> mfCheckKeys_fast(sector_cnt, true, true, 2, 1, tmp_key, e_sector, false);