the last part

This commit is contained in:
merlokk 2021-08-09 15:46:44 +03:00
commit 09320b911e

View file

@ -4553,9 +4553,7 @@ static int CmdHF14ADesCreateTrMACFile(const char *Cmd) {
} }
uint32_t keyver = 0x00; uint32_t keyver = 0x00;
res = arg_get_u32_hexstr_def_nlen(ctx, 21, 0x00, &keyver, 1, true); if (CLIGetUint32Hex(ctx, 21, 0x00, &keyver, NULL, 1, "Key version must have 1 bytes length")) {
if (res == 2) {
PrintAndLogEx(ERR, "Key version must be 1 byte length");
CLIParserFree(ctx); CLIParserFree(ctx);
return PM3_EINVARG; return PM3_EINVARG;
} }