From 0c407504b3adcc831b2f11b8e9fa7549d4c61009 Mon Sep 17 00:00:00 2001 From: Bjoern Kerler Date: Sat, 11 Apr 2020 13:14:16 +0200 Subject: [PATCH] Fix file ids handling --- client/cmdhfmfdes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdhfmfdes.c b/client/cmdhfmfdes.c index 6259ac422..357d82e65 100644 --- a/client/cmdhfmfdes.c +++ b/client/cmdhfmfdes.c @@ -1434,7 +1434,7 @@ static int CmdHF14ADesEnumApplications(const char *Cmd) { uint8_t filesettings[20] = {0}; int fileset_len = 0; - int res = get_desfire_filesettings(j, filesettings, &fileset_len); + int res = get_desfire_filesettings(file_ids[j], filesettings, &fileset_len); int maclen = 0; // To be implemented if (res == PM3_SUCCESS) { if (DecodeFileSettings(filesettings, fileset_len, maclen) != PM3_SUCCESS) {