Skip to content

Commit

Permalink
Fix a NULL dereference exception occurring when emulating cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Kondenko committed Oct 5, 2023
1 parent 8c9063e commit b75c552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mifare_fuzzer_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ int32_t mifare_fuzzer_worker_task(void* context) {
furi_delay_ms(50);
}
furi_hal_nfc_sleep();
mifare_fuzzer_worker->state = MifareFuzzerWorkerStateStop;

} else if(
mifare_fuzzer_worker->state == MifareFuzzerWorkerStateEmulateClassic &&
nfc_worker_get_state(mifare_fuzzer_worker->nfc_worker) != NfcWorkerStateMfClassicEmulate) {
Expand All @@ -92,8 +94,6 @@ int32_t mifare_fuzzer_worker_task(void* context) {
mifare_fuzzer_worker);
}

mifare_fuzzer_worker->state = MifareFuzzerWorkerStateStop;

return 0;
}

Expand Down

0 comments on commit b75c552

Please sign in to comment.