Merge pull request #2949 from Flole998/patch-1

Allow writing key B even when no key A was found
This commit is contained in:
Iceman authored and GitHub committed 2025-07-29 16:30:08 +02:00
commit a1e9b4716c
1 file changed
+1 -1
+1 -1
View File
@@ -977,7 +977,7 @@ int createMfcKeyDump(const char *preferredName, uint8_t sectorsCnt, const sector
}
for (int i = 0; i < sectorsCnt; i++) {
if (e_sector[i].foundKey[0])
if (e_sector[i].foundKey[1])
num_to_bytes(e_sector[i].Key[1], sizeof(tmp), tmp);
else
memcpy(tmp, empty, sizeof(tmp));