mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-21 20:52:45 +08:00
Fix issue #1287
This commit is contained in:
parent
a330401769
commit
54153153b8
1 changed files with 3 additions and 2 deletions
|
@ -1972,8 +1972,9 @@ static int CmdHF14AMfAutoPWN(const char *Cmd) {
|
||||||
// ------------------------------
|
// ------------------------------
|
||||||
|
|
||||||
// create/initialize key storage structure
|
// create/initialize key storage structure
|
||||||
res = initSectorTable(&e_sector, sector_cnt);
|
uint32_t e_sector_size = sector_cnt > sectorno ? sector_cnt : sectorno + 1;
|
||||||
if (res != sector_cnt) {
|
res = initSectorTable(&e_sector, e_sector_size);
|
||||||
|
if (res != e_sector_size) {
|
||||||
free(e_sector);
|
free(e_sector);
|
||||||
return PM3_EMALLOC;
|
return PM3_EMALLOC;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue