mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-27 04:06:38 +00:00
bugfix: mftool authenticated only with KEYA
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user