From 4701e6111c94c48aec1ad2bcbb6f7d258046dc1d Mon Sep 17 00:00:00 2001 From: LW Date: Wed, 18 Dec 2019 02:32:30 -0800 Subject: [PATCH] finish removing 'not vulnerable to nested' error message --- client/mifare/mifarehost.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/mifare/mifarehost.c b/client/mifare/mifarehost.c index accbf645..4e0117c8 100644 --- a/client/mifare/mifarehost.c +++ b/client/mifare/mifarehost.c @@ -341,7 +341,7 @@ int mfnested(uint8_t blockNo, uint8_t keyType, uint8_t *key, uint8_t trgBlockNo, uint8_t *keyBlock = NULL; uint64_t key64; - int isOK = -6; + int isOK = -4; // flush queue (void)WaitForResponseTimeout(CMD_ACK,NULL,100); @@ -359,8 +359,6 @@ int mfnested(uint8_t blockNo, uint8_t keyType, uint8_t *key, uint8_t trgBlockNo, } if (resp.arg[0]) { - memcpy(&statelists[0].nt, (void *)(resp.d.asBytes + 4 + 1 * 8 + 0), 4); - num_to_bytes(statelists[0].nt, 4, resultKey); return resp.arg[0]; // error during nested }