mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 14:23:50 -07:00
cov 353929
This commit is contained in:
parent
dd3798c230
commit
eb69219a27
1 changed files with 2 additions and 0 deletions
|
@ -4284,10 +4284,12 @@ static int CmdHF14ADesSetConfiguration(const char *Cmd) {
|
||||||
CLIGetHexWithReturn(ctx, 13, param, ¶mlen);
|
CLIGetHexWithReturn(ctx, 13, param, ¶mlen);
|
||||||
if (paramlen == 0) {
|
if (paramlen == 0) {
|
||||||
PrintAndLogEx(ERR, "Parameter must have a data.");
|
PrintAndLogEx(ERR, "Parameter must have a data.");
|
||||||
|
CLIParserFree(ctx);
|
||||||
return PM3_EINVARG;
|
return PM3_EINVARG;
|
||||||
}
|
}
|
||||||
if (paramlen > 50) {
|
if (paramlen > 50) {
|
||||||
PrintAndLogEx(ERR, "Parameter data length must be less than 50 instead of %d.", paramlen);
|
PrintAndLogEx(ERR, "Parameter data length must be less than 50 instead of %d.", paramlen);
|
||||||
|
CLIParserFree(ctx);
|
||||||
return PM3_EINVARG;
|
return PM3_EINVARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue