mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 02:04:39 +08:00
coverity 303200
This commit is contained in:
parent
537a21b2fa
commit
904bc51fb6
1 changed files with 2 additions and 1 deletions
|
@ -139,11 +139,12 @@ static int CmdHF14BSim(const char *Cmd) {
|
||||||
uint8_t pupi[4];
|
uint8_t pupi[4];
|
||||||
int n = 0;
|
int n = 0;
|
||||||
int res = CLIParamHexToBuf(arg_get_str(ctx, 1), pupi, sizeof(pupi), &n);
|
int res = CLIParamHexToBuf(arg_get_str(ctx, 1), pupi, sizeof(pupi), &n);
|
||||||
|
CLIParserFree(ctx);
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
PrintAndLogEx(FAILED, "failed to read pupi");
|
PrintAndLogEx(FAILED, "failed to read pupi");
|
||||||
return PM3_EINVARG;
|
return PM3_EINVARG;
|
||||||
}
|
}
|
||||||
CLIParserFree(ctx);
|
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
SendCommandNG(CMD_HF_ISO14443B_SIMULATE, pupi, sizeof(pupi));
|
SendCommandNG(CMD_HF_ISO14443B_SIMULATE, pupi, sizeof(pupi));
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|
Loading…
Reference in a new issue