Merge pull request #1969 from wh201906/logic

Fix logic
This commit is contained in:
Iceman 2023-04-16 05:52:54 +02:00 committed by GitHub
commit d70af41229
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)