mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-06-06 13:22:02 +00:00
Fixed bug causing retries loop to be skipped
Fixed bug causing retries loop to be skipped
This commit is contained in:
+3
-2
@@ -3187,12 +3187,13 @@ fast_restore:
|
||||
Dbhexdump(8, fast_restore_key, false);
|
||||
Dbprintf(_RED_("Attempted to restore original key for %3d times and failed. Stopping. Card is likely unusable."), revert_retries);
|
||||
}
|
||||
if (recovered) {
|
||||
if (recovered && reverted) {
|
||||
goto restore;
|
||||
} else {
|
||||
} else if (revert_retries >= 7) {
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
goto out;
|
||||
|
||||
restore:
|
||||
;// empty statement for compilation
|
||||
|
||||
Reference in New Issue
Block a user