From 1e9d1783097b3d71333c031558cbeed159296919 Mon Sep 17 00:00:00 2001 From: puppywang Date: Tue, 17 Nov 2020 15:47:15 +0800 Subject: [PATCH] Fix compile. --- src/mfoc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mfoc.c b/src/mfoc.c index 6ff2ca9..201b678 100644 --- a/src/mfoc.c +++ b/src/mfoc.c @@ -915,6 +915,7 @@ int mf_enhanced_auth(int e_sector, int a_sector, mftag t, mfreader r, denonce *d // Possible key counter, just continue with a previous "session" uint32_t kcount = pk->size; + uint8_t Nr[4] = { 0x00, 0x00, 0x00, 0x00 }; // Reader nonce uint8_t Auth[4] = { 0x00, t.sectors[e_sector].trailer, 0x00, 0x00 }; uint8_t AuthEnc[4] = { 0x00, t.sectors[e_sector].trailer, 0x00, 0x00 }; uint8_t AuthEncPar[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };