mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-26 08:05:27 -07:00
fix check length
This commit is contained in:
parent
fab6d5748c
commit
f9e0329125
1 changed files with 1 additions and 1 deletions
|
@ -1062,7 +1062,7 @@ int DesfireCreateFile(DesfireContext *dctx, uint8_t ftype, uint8_t *fdata, size_
|
|||
const DesfireCreateFileCommandsS *rcmd = GetDesfireFileCmdRec(ftype);
|
||||
if (rcmd == NULL)
|
||||
return -100;
|
||||
if (checklen && fdatalen != (rcmd->len + 1) && fdatalen != (rcmd->len + 1 + (rcmd->mayHaveISOfid ? 2 : 0)))
|
||||
if (checklen && fdatalen != (rcmd->createlen + 1) && fdatalen != (rcmd->createlen + 1 + (rcmd->mayHaveISOfid ? 2 : 0)))
|
||||
return -110;
|
||||
|
||||
return DesfireCommandTxData(dctx, rcmd->cmd, fdata, fdatalen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue