Merge pull request #669 from bkerler/authtest

Fix bug for file id handling in hf mf des enum :)
This commit is contained in:
Iceman 2020-04-11 13:26:14 +02:00 committed by GitHub
commit de0768fadc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {