mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-24 07:05:40 -07:00
fix coverity 290965
This commit is contained in:
parent
8fd4bb6e33
commit
29a4a888a4
1 changed files with 2 additions and 7 deletions
|
@ -3216,24 +3216,20 @@ static int CmdHF14ADesFormatPICC(const char *Cmd) {
|
|||
"\n\thf mfdes formatpicc\n"
|
||||
"Make sure to authenticate picc before running this command.\n"
|
||||
);
|
||||
|
||||
CLIParserFree(ctx);
|
||||
sAPDU apdu = {0x90, MFDES_FORMAT_PICC, 0x00, 0x00, 0, NULL}; // 0xDF
|
||||
uint16_t sw = 0;
|
||||
uint32_t recvlen = 0;
|
||||
int res = send_desfire_cmd(&apdu, false, NULL, &recvlen, &sw, 0, true);
|
||||
if (res != PM3_SUCCESS) {
|
||||
PrintAndLogEx(WARNING, _RED_(" Can't format picc -> %s"), GetErrorString(res, &sw));
|
||||
DropField();
|
||||
return res;
|
||||
} else {
|
||||
PrintAndLogEx(INFO, "Card successfully reset");
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
DropField();
|
||||
return PM3_SUCCESS;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
static int CmdHF14ADesInfo(const char *Cmd) {
|
||||
(void)Cmd; // Cmd is not used so far
|
||||
DropField();
|
||||
|
@ -3372,7 +3368,6 @@ static int CmdHF14ADesInfo(const char *Cmd) {
|
|||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
static void DecodeFileType(uint8_t filetype) {
|
||||
switch (filetype) {
|
||||
case 0x00:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue