mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
Fix for making ndefread CRC override work
The return value from MADCheck, which happens before MADDecode, needs to be ignored also
This commit is contained in:
@@ -7129,7 +7129,10 @@ int CmdHFMFNDEFRead(const char *Cmd) {
|
||||
int res = MADCheck(sector0, sector10, verbose, &haveMAD2);
|
||||
if (res != PM3_SUCCESS) {
|
||||
PrintAndLogEx(ERR, "MAD error %d", res);
|
||||
return res;
|
||||
if (override)
|
||||
PrintAndLogEx(INFO, "overriding CRC check");
|
||||
else
|
||||
return res;
|
||||
}
|
||||
|
||||
uint16_t mad[7 + 8 + 8 + 8 + 8] = {0};
|
||||
|
||||
@@ -2203,7 +2203,10 @@ int CmdHFMFPNDEFRead(const char *Cmd) {
|
||||
int res = MADCheck(sector0, NULL, verbose, &haveMAD2);
|
||||
if (res != PM3_SUCCESS) {
|
||||
PrintAndLogEx(ERR, "MAD error %d", res);
|
||||
return res;
|
||||
if (override)
|
||||
PrintAndLogEx(INFO, "overriding CRC check");
|
||||
else
|
||||
return res;
|
||||
}
|
||||
|
||||
if (haveMAD2) {
|
||||
|
||||
Reference in New Issue
Block a user