cov 353929

This commit is contained in:
merlokk 2021-07-26 17:37:41 +03:00
commit eb69219a27

View file

@ -4284,10 +4284,12 @@ static int CmdHF14ADesSetConfiguration(const char *Cmd) {
CLIGetHexWithReturn(ctx, 13, param, &paramlen); CLIGetHexWithReturn(ctx, 13, param, &paramlen);
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;
} }