mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
coverity 303195
This commit is contained in:
parent
a5bd3d7c32
commit
d2e75de06e
1 changed files with 3 additions and 0 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue