mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
check return code
This commit is contained in:
parent
c1bc926e24
commit
70e39ec0c4
1 changed files with 3 additions and 0 deletions
|
@ -154,6 +154,9 @@ int mfG4ChangePassword(uint8_t *pwd, uint8_t *newpwd, bool verbose) {
|
|||
return res;
|
||||
}
|
||||
|
||||
if (resplen != 2 || resp[0] != 0x90 || resp[1] != 0x00)
|
||||
return PM3_EAPDU_FAIL;
|
||||
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue