From c8219a603096d4dfdeee6606b3c4f945897c998c Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 11 Jul 2025 13:43:50 +0200 Subject: [PATCH] detect_classic_auth: silent error --- client/src/mifare/mifarehost.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/src/mifare/mifarehost.c b/client/src/mifare/mifarehost.c index 0b2ae1b23..d8f3a04ed 100644 --- a/client/src/mifare/mifarehost.c +++ b/client/src/mifare/mifarehost.c @@ -1449,12 +1449,8 @@ int detect_classic_auth(uint8_t key_type) { return PM3_ETIMEOUT; } - // check respA - if (respA.oldarg[0] != 4) { - PrintAndLogEx(ERR, "PRNG data error: Wrong length: %"PRIu64, respA.oldarg[0]); - return false; - } - return true; + // check respA for a nonce + return respA.oldarg[0] == 4; } /* Detect Mifare Classic NACK bug