From f50b98ece5e386cf00becc137a3d9744a8b2d6ac Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Mon, 9 Aug 2021 15:12:07 +0300 Subject: [PATCH] isoid --- client/src/cmdhfmfdes.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index 02c14cceb..72af400ff 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -2330,14 +2330,12 @@ static int CmdHF14ADesSelectApp(const char *Cmd) { CLIGetStrWithReturn(ctx, 12, dfname, &dfnamelen); uint32_t isoid = 0x0000; - res = arg_get_u32_hexstr_def_nlen(ctx, 13, 0x0000, &isoid, 2, true); - bool idsoidpresent = (res == 1); - if (res == 2) { - PrintAndLogEx(ERR, "ISO ID for EF or DF must have 2 bytes length"); + bool isoidpresent = false; + if (CLIGetUint32Hex(ctx, 13, 0x0000, &isoid, &isoidpresent, 2, "ISO ID for EF or DF must have 2 bytes length")) { CLIParserFree(ctx); return PM3_EINVARG; } - + bool selectmf = arg_get_lit(ctx, 14); SetAPDULogging(APDULogging);