From 09320b911ea17a68693f520e97c55240c5ea8d12 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Mon, 9 Aug 2021 15:46:44 +0300 Subject: [PATCH] the last part --- client/src/cmdhfmfdes.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index 6e7f80aa0..0a3a6c798 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -4553,9 +4553,7 @@ static int CmdHF14ADesCreateTrMACFile(const char *Cmd) { } uint32_t keyver = 0x00; - res = arg_get_u32_hexstr_def_nlen(ctx, 21, 0x00, &keyver, 1, true); - if (res == 2) { - PrintAndLogEx(ERR, "Key version must be 1 byte length"); + if (CLIGetUint32Hex(ctx, 21, 0x00, &keyver, NULL, 1, "Key version must have 1 bytes length")) { CLIParserFree(ctx); return PM3_EINVARG; }