Merge pull request #3374 from horrordash/master
fix incorrect reading of MF Classic 4K
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -2854,7 +2854,7 @@ int MifareECardLoad(uint8_t sectorcnt, uint8_t keytype, uint8_t *key) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsSectorTrailer(b)) {
|
if (IsSectorTrailer(tb)) {
|
||||||
// sector trailer, keep the keys, set only the AC
|
// sector trailer, keep the keys, set only the AC
|
||||||
uint8_t st[MIFARE_BLOCK_SIZE] = {0x00};
|
uint8_t st[MIFARE_BLOCK_SIZE] = {0x00};
|
||||||
emlGetMem_xt(st, tb, 1, MIFARE_BLOCK_SIZE);
|
emlGetMem_xt(st, tb, 1, MIFARE_BLOCK_SIZE);
|
||||||
|
|||||||
Reference in new issue
Block a user