Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/mfoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,9 @@ int main(int argc, char *const argv[])
failure = false;
} else {
// Error, now try read() with B key
if (res != NFC_ERFTRANS) {
if (res == NFC_EMFCAUTHFAIL) {
fprintf(stdout, "Failed reading with Key A after successfully testing Key A. This is unusual, but continuing anyway in case Key B succeeds...\n");
} else if (res != NFC_ERFTRANS) {
nfc_perror(r.pdi, "nfc_initiator_mifare_cmd");
goto error;
}
Expand Down