mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
coverity 226188
This commit is contained in:
parent
b7d543888c
commit
7b482c64b1
1 changed files with 9 additions and 6 deletions
|
@ -2866,18 +2866,21 @@ out:
|
||||||
PrintAndLogEx(SUCCESS, "Found keys have been transferred to the emulator memory");
|
PrintAndLogEx(SUCCESS, "Found keys have been transferred to the emulator memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable fast mode and send a dummy command to make it effective
|
|
||||||
conn.block_after_ACK = false;
|
|
||||||
SendCommandNG(CMD_PING, NULL, 0);
|
|
||||||
WaitForResponseTimeout(CMD_PING, NULL, 1000);
|
|
||||||
|
|
||||||
if (createDumpFile) {
|
if (createDumpFile) {
|
||||||
fptr = GenerateFilename("hf-mf-", "-key.bin");
|
fptr = GenerateFilename("hf-mf-", "-key.bin");
|
||||||
createMfcKeyDump(SectorsCnt, e_sector, fptr);
|
createMfcKeyDump(SectorsCnt, e_sector, fptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(keyBlock);
|
free(keyBlock);
|
||||||
free(e_sector);
|
free(e_sector);
|
||||||
|
|
||||||
|
// Disable fast mode and send a dummy command to make it effective
|
||||||
|
conn.block_after_ACK = false;
|
||||||
|
SendCommandNG(CMD_PING, NULL, 0);
|
||||||
|
if (!WaitForResponseTimeout(CMD_PING, NULL, 1000)) {
|
||||||
|
PrintAndLogEx(WARNING, "command execution time out");
|
||||||
|
return PM3_ETIMEOUT;
|
||||||
|
}
|
||||||
|
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue