From 8e4595e4f7f2a4387f2a6f67d88b071970236893 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Sat, 29 Oct 2022 17:21:30 +0300 Subject: [PATCH] fix nfc worker merge issues --- lib/nfc/nfc_worker.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/nfc/nfc_worker.c b/lib/nfc/nfc_worker.c index dfc9e1b42..e1e379a06 100644 --- a/lib/nfc/nfc_worker.c +++ b/lib/nfc/nfc_worker.c @@ -566,18 +566,6 @@ void nfc_worker_mf_classic_dict_attack(NfcWorker* nfc_worker) { return; } - // Clear found keys if the key cache is incorrect (key set as found but sector not read) - for(uint16_t sector = 0; sector < total_sectors; sector++) { - if(mf_classic_is_key_found(data, sector, MfClassicKeyA) && - !mf_classic_is_sector_read(data, sector)) { - mf_classic_set_key_not_found(data, sector, MfClassicKeyA); - } - if(mf_classic_is_key_found(data, sector, MfClassicKeyB) && - !mf_classic_is_sector_read(data, sector)) { - mf_classic_set_key_not_found(data, sector, MfClassicKeyB); - } - } - FURI_LOG_D( TAG, "Start Dictionary attack, Key Count %ld", mf_classic_dict_get_total_keys(dict)); for(size_t i = 0; i < total_sectors; i++) { @@ -906,6 +894,7 @@ static void nfc_worker_reader_analyzer_callback(ReaderAnalyzerEvent event, void* } void nfc_worker_analyze_reader(NfcWorker* nfc_worker) { + furi_assert(nfc_worker); furi_assert(nfc_worker->callback); FuriHalNfcTxRxContext tx_rx = {};