From ba3d5c32ae7abd652f016b25509a9b205edb1191 Mon Sep 17 00:00:00 2001 From: Self Not Found Date: Sun, 16 Apr 2023 09:51:07 +0800 Subject: [PATCH] Fix logic --- client/src/cmdhfmfp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhfmfp.c b/client/src/cmdhfmfp.c index 7646953e8..7c45455f4 100644 --- a/client/src/cmdhfmfp.c +++ b/client/src/cmdhfmfp.c @@ -1024,7 +1024,7 @@ static int MFPKeyCheck(uint8_t startSector, uint8_t endSector, uint8_t startKeyA for (int retry = 0; retry < 4; retry++) { res = MifareAuth4(NULL, keyn, keyList[i], selectCard, true, false, false, true); - if (res == PM3_SUCCESS || PM3_EWRONGANSWER) + if (res == PM3_SUCCESS || res == PM3_EWRONGANSWER) break; if (verbose)