From 61f3ef61defb1bcc236fdfb576046d32dfbaec2f Mon Sep 17 00:00:00 2001 From: Bjoern Kerler Date: Tue, 7 Apr 2020 18:27:46 +0200 Subject: [PATCH] Fix issue #646 --- client/cmdhfmfdes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/cmdhfmfdes.c b/client/cmdhfmfdes.c index 46e22f07d..52fa191cf 100644 --- a/client/cmdhfmfdes.c +++ b/client/cmdhfmfdes.c @@ -300,6 +300,7 @@ static int get_desfire_keyversion(uint8_t curr_key, uint8_t *num_versions) { static int get_desfire_select_application(uint8_t *aid) { if (aid == NULL) return PM3_ESOFT; + DropField(); uint8_t c[] = {SELECT_APPLICATION, 0x00, 0x00, 0x03, aid[0], aid[1], aid[2], 0x00}; // 0x5a PacketResponseNG resp; int ret = SendDesfireCmd(c, sizeof(c), INIT, sizeof(c), 0, &resp, 3000);