fix match iso id and iso file id

This commit is contained in:
merlokk 2021-08-04 18:06:23 +03:00
commit be9093db63

View file

@ -1822,8 +1822,7 @@ int DesfireFillFileList(DesfireContext *dctx, FileListS FileList, size_t *filesc
isoindx++; isoindx++;
} }
} }
if (isoindx > 0)
isoindx--;
if (isoindx * 2 != buflen) if (isoindx * 2 != buflen)
PrintAndLogEx(WARNING, "Wrong ISO ID list length. must be %zu but %zu", buflen, isoindx * 2); PrintAndLogEx(WARNING, "Wrong ISO ID list length. must be %zu but %zu", buflen, isoindx * 2);
} else { } else {