From 33c79942c96a01ff1286fc08e09fb5d8b7e7c4fe Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Mon, 9 Aug 2021 14:48:42 +0300 Subject: [PATCH] CmdHF14ADesValueOperations --- 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 1648ef359..a6c4c0200 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -4757,9 +4757,7 @@ static int CmdHF14ADesValueOperations(const char *Cmd) { } uint32_t value = 0; - res = arg_get_u32_hexstr_def_nlen(ctx, 14, 0, &value, 4, true); - if (res == 2) { - PrintAndLogEx(ERR, "Value must have 4 byte length"); + if (CLIGetUint32Hex(ctx, 14, 0, &value, NULL, 4, "Value must have 4 byte length")) { CLIParserFree(ctx); return PM3_EINVARG; }