mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -07:00
Update cmdhficlass.c
This commit is contained in:
parent
66b030290a
commit
ed8a2d330e
1 changed files with 2 additions and 2 deletions
|
@ -4027,7 +4027,7 @@ static int CmdHFiClassLegRecLookUp(const char *Cmd) {
|
||||||
thread_data[t].keyBlock = calloc(keys_per_thread, PICOPASS_BLOCK_SIZE);
|
thread_data[t].keyBlock = calloc(keys_per_thread, PICOPASS_BLOCK_SIZE);
|
||||||
|
|
||||||
if (thread_data[t].keyBlock == NULL) {
|
if (thread_data[t].keyBlock == NULL) {
|
||||||
PrintAndLogEx(ERROR, "Memory allocation failed for keyBlock in thread %d.", t);
|
PrintAndLogEx(ERR, "Memory allocation failed for keyBlock in thread %d.", t);
|
||||||
for (uint32_t i = 0; i < t; i++) {
|
for (uint32_t i = 0; i < t; i++) {
|
||||||
free(thread_data[i].keyBlock);
|
free(thread_data[i].keyBlock);
|
||||||
}
|
}
|
||||||
|
@ -4048,7 +4048,7 @@ static int CmdHFiClassLegRecLookUp(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prekey == NULL) {
|
if (prekey == NULL) {
|
||||||
PrintAndLogEx(ERROR, "Memory allocation failed for prekey.");
|
PrintAndLogEx(ERR, "Memory allocation failed for prekey.");
|
||||||
for (uint32_t t = 0; t < num_threads; t++) {
|
for (uint32_t t = 0; t < num_threads; t++) {
|
||||||
free(thread_data[t].keyBlock);
|
free(thread_data[t].keyBlock);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue