From f4cfd01b6be6cc93ea0a25c8e2d23133b0bc2972 Mon Sep 17 00:00:00 2001 From: Polle Vanhoof Date: Mon, 3 Aug 2020 20:45:37 +0200 Subject: [PATCH] Fix stupid mistake. I should learn to test before I commit --- src/mfoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mfoc.c b/src/mfoc.c index a86ccb6..672a297 100644 --- a/src/mfoc.c +++ b/src/mfoc.c @@ -684,7 +684,7 @@ int main(int argc, char *const argv[]) failure = false; } else { // Error, now try read() with B key - if (res != NFC_EMFCAUTHFAIL) { + 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..."); } else if (res != NFC_ERFTRANS) { nfc_perror(r.pdi, "nfc_initiator_mifare_cmd");