isoid
This commit is contained in:
1 parent
282ea59cc6
commit
f50b98ece5
1 file changed
+2
-4
@@ -2330,10 +2330,8 @@ static int CmdHF14ADesSelectApp(const char *Cmd) {
|
|||||||
CLIGetStrWithReturn(ctx, 12, dfname, &dfnamelen);
|
CLIGetStrWithReturn(ctx, 12, dfname, &dfnamelen);
|
||||||
|
|
||||||
uint32_t isoid = 0x0000;
|
uint32_t isoid = 0x0000;
|
||||||
res = arg_get_u32_hexstr_def_nlen(ctx, 13, 0x0000, &isoid, 2, true);
|
bool isoidpresent = false;
|
||||||
bool idsoidpresent = (res == 1);
|
if (CLIGetUint32Hex(ctx, 13, 0x0000, &isoid, &isoidpresent, 2, "ISO ID for EF or DF must have 2 bytes length")) {
|
||||||
if (res == 2) {
|
|
||||||
PrintAndLogEx(ERR, "ISO ID for EF or DF must have 2 bytes length");
|
|
||||||
CLIParserFree(ctx);
|
CLIParserFree(ctx);
|
||||||
return PM3_EINVARG;
|
return PM3_EINVARG;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user