Fix logic

This commit is contained in:
Self Not Found 2023-04-16 09:51:07 +08:00 committed by GitHub
commit ba3d5c32ae
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)