mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
fix coverity #404576
This commit is contained in:
parent
30538c20ae
commit
b217b4e39d
1 changed files with 3 additions and 3 deletions
|
@ -1460,8 +1460,9 @@ static int CmdHF14AChaining(const char *Cmd) {
|
||||||
CLIParserContext *ctx;
|
CLIParserContext *ctx;
|
||||||
CLIParserInit(&ctx, "hf 14a chaining",
|
CLIParserInit(&ctx, "hf 14a chaining",
|
||||||
"Enable/Disable ISO14443a input chaining. Maximum input length goes from ATS.",
|
"Enable/Disable ISO14443a input chaining. Maximum input length goes from ATS.",
|
||||||
|
"hf 14a chaining -> show chaining enable/disable state\n"
|
||||||
"hf 14a chaining --off -> disable chaining\n"
|
"hf 14a chaining --off -> disable chaining\n"
|
||||||
"hf 14a chaining -> show chaining enable/disable state\n");
|
);
|
||||||
|
|
||||||
void *argtable[] = {
|
void *argtable[] = {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
|
@ -1473,6 +1474,7 @@ static int CmdHF14AChaining(const char *Cmd) {
|
||||||
|
|
||||||
bool on = arg_get_lit(ctx, 1);
|
bool on = arg_get_lit(ctx, 1);
|
||||||
bool off = arg_get_lit(ctx, 2);
|
bool off = arg_get_lit(ctx, 2);
|
||||||
|
CLIParserFree(ctx);
|
||||||
|
|
||||||
if ((on + off) > 1) {
|
if ((on + off) > 1) {
|
||||||
PrintAndLogEx(INFO, "Select only one option");
|
PrintAndLogEx(INFO, "Select only one option");
|
||||||
|
@ -1485,8 +1487,6 @@ static int CmdHF14AChaining(const char *Cmd) {
|
||||||
if (off)
|
if (off)
|
||||||
Set_apdu_in_framing(false);
|
Set_apdu_in_framing(false);
|
||||||
|
|
||||||
CLIParserFree(ctx);
|
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "\nISO 14443-4 input chaining %s.\n", g_apdu_in_framing_enable ? "enabled" : "disabled");
|
PrintAndLogEx(INFO, "\nISO 14443-4 input chaining %s.\n", g_apdu_in_framing_enable ? "enabled" : "disabled");
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue