Fix correct status flag error handling in authentication flow

This commit is contained in:
q0jt
2026-03-14 03:36:57 +09:00
parent bf0abf3ee1
commit 08a90b9eba
+2 -2
View File
@@ -4200,7 +4200,7 @@ static int felica_internal_authentication(
return PM3_ERFTRANS;
}
if (res.status_flags.status_flag1[0] != 0x00 && res.status_flags.status_flag2[0] != 0x00) {
if (res.status_flags.status_flag1[0] != 0x00 || res.status_flags.status_flag2[0] != 0x00) {
PrintAndLogEx(ERR, "\nError RC Write");
return PM3_ERFTRANS;
}
@@ -4329,7 +4329,7 @@ static int felica_external_authentication(
return PM3_ERFTRANS;
}
if (res.status_flags.status_flag1[0] != 0x00 && res.status_flags.status_flag2[0] != 0x00) {
if (res.status_flags.status_flag1[0] != 0x00 || res.status_flags.status_flag2[0] != 0x00) {
PrintAndLogEx(ERR, "\nExternal Authenticate: " _RED_("Failed"));
return PM3_ERFTRANS;
}