From 18003a21ab4fc63e4322965321871a7854ff4a72 Mon Sep 17 00:00:00 2001 From: Roel Verdult Date: Fri, 25 Sep 2009 08:07:12 +0000 Subject: [PATCH] bugfix: mftool authenticated only with KEYA --- src/mftool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mftool.c b/src/mftool.c index 7eb145c..d1cc8a0 100644 --- a/src/mftool.c +++ b/src/mftool.c @@ -104,7 +104,7 @@ bool read_card() } // Try to authenticate for the current sector - if (!nfc_initiator_mifare_cmd(pdi,MC_AUTH_A,iBlock,&mp)) + if (!nfc_initiator_mifare_cmd(pdi,mc,iBlock,&mp)) { printf("!\nError: authentication failed for block %02x\n",iBlock); return false;