From 4f77c18ab4afddb4db240a927f46070daf0602f5 Mon Sep 17 00:00:00 2001 From: Flole Date: Tue, 29 Jul 2025 15:08:46 +0200 Subject: [PATCH] Allow writing key B even when no key A was found Likely a copy/paste bug Signed-off-by: Flole --- client/src/fileutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/fileutils.c b/client/src/fileutils.c index 4ab0b7595..1cbe50fba 100644 --- a/client/src/fileutils.c +++ b/client/src/fileutils.c @@ -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));