mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
fix hf 15 readmulti - wrong block count number. It is decreased before to be zero based, but in calc we need number of blocks
This commit is contained in:
parent
95814cc5b8
commit
21bae5c73f
2 changed files with 2 additions and 1 deletions
|
@ -2274,7 +2274,7 @@ static int CmdHF15Readmulti(const char *Cmd) {
|
|||
ISO15_ERROR_HANDLING_CARD_RESPONSE(d, resp.length)
|
||||
|
||||
// 1 byte cmd, 1 lock byte, 4 / 8 bytes block size, 2 crc
|
||||
if (resp.length > (1 + (blockcnt * (blocksize + 1)) + 2)) {
|
||||
if (resp.length > (1 + ((blockcnt + 1) * (blocksize + 1)) + 2)) {
|
||||
PrintAndLogEx(WARNING, "got longer response. Check block size!");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue