coverity 303195
This commit is contained in:
@@ -426,6 +426,7 @@ static int CmdHIDBrute(const char *Cmd) {
|
|||||||
format_idx = HIDFindCardFormat((char*) format);
|
format_idx = HIDFindCardFormat((char*) format);
|
||||||
if (format_idx == -1) {
|
if (format_idx == -1) {
|
||||||
PrintAndLogEx(WARNING, "Unknown format: " _YELLOW_("%s"), format);
|
PrintAndLogEx(WARNING, "Unknown format: " _YELLOW_("%s"), format);
|
||||||
|
CLIParserFree(ctx);
|
||||||
return PM3_EINVARG;
|
return PM3_EINVARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -435,6 +436,8 @@ static int CmdHIDBrute(const char *Cmd) {
|
|||||||
cn_hi.OEM = arg_get_int_def(ctx, 6, 0);
|
cn_hi.OEM = arg_get_int_def(ctx, 6, 0);
|
||||||
delay = arg_get_int_def(ctx, 7, 1000);
|
delay = arg_get_int_def(ctx, 7, 1000);
|
||||||
|
|
||||||
|
CLIParserFree(ctx);
|
||||||
|
|
||||||
if (arg_get_lit(ctx, 8) && arg_get_lit(ctx, 9)) {
|
if (arg_get_lit(ctx, 8) && arg_get_lit(ctx, 9)) {
|
||||||
direction = 0;
|
direction = 0;
|
||||||
} else if (arg_get_lit(ctx, 8)) {
|
} else if (arg_get_lit(ctx, 8)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user