Merge pull request #2949 from Flole998/patch-1
Some checks failed
Windows Build and Test / wsl (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Ubuntu Build and Test / ubuntu-make (push) Has been cancelled
Ubuntu Build and Test / ubuntu-make-btaddon (push) Has been cancelled
Ubuntu Build and Test / ubuntu-cmake (push) Has been cancelled
Windows Build and Test / proxspace (push) Has been cancelled
MacOS Build and Test / macos-make (push) Has been cancelled
MacOS Build and Test / macos-make-btaddon (push) Has been cancelled
MacOS Build and Test / macos-cmake (push) Has been cancelled

Allow writing key B even when no key A was found
This commit is contained in:
Iceman 2025-07-29 16:30:08 +02:00 committed by GitHub
commit a1e9b4716c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -977,7 +977,7 @@ int createMfcKeyDump(const char *preferredName, uint8_t sectorsCnt, const sector
} }
for (int i = 0; i < sectorsCnt; i++) { 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); num_to_bytes(e_sector[i].Key[1], sizeof(tmp), tmp);
else else
memcpy(tmp, empty, sizeof(tmp)); memcpy(tmp, empty, sizeof(tmp));