coverity fixes

This commit is contained in:
iceman1001 committed 2023-11-06 22:58:14 +01:00
1 parent bf6f5518ac
commit 6653bffe00
2 files changed
+6 -4

No files matched your search

+3 -2
View File
@@ -8256,6 +8256,8 @@ static int CmdHF14AGen4ChangePwd(const char *Cmd) {
bool verbose = arg_get_lit(ctx, 3);
CLIParserFree(ctx);
if (pwd_len != 4) {
PrintAndLogEx(FAILED, "Old password must be 4 bytes long, got " _YELLOW_("%u"), pwd_len);
return PM3_EINVARG;
@@ -8272,8 +8274,7 @@ static int CmdHF14AGen4ChangePwd(const char *Cmd) {
return res;
}
PrintAndLogEx(SUCCESS, "Change password done successfully.");
PrintAndLogEx(SUCCESS, "Change password ( " _GREEN_("ok") " )");
return PM3_SUCCESS;
}