mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
resolve maybe-uninitialized
This commit is contained in:
parent
ddaa6de5cf
commit
13053e14d1
1 changed files with 5 additions and 2 deletions
|
@ -2589,8 +2589,11 @@ static int CmdHFFelicaAuthenticationLite(const char *Cmd) {
|
||||||
uint8_t flags = (FELICA_APPEND_CRC | FELICA_RAW | FELICA_NO_DISCONNECT);
|
uint8_t flags = (FELICA_APPEND_CRC | FELICA_RAW | FELICA_NO_DISCONNECT);
|
||||||
|
|
||||||
felica_status_response_t sres;
|
felica_status_response_t sres;
|
||||||
bool error = (send_wr_plain(flags, datalen, data, false, &sres) != PM3_SUCCESS);
|
if (send_wr_plain(flags, datalen, data, false, &sres) != PM3_SUCCESS) {
|
||||||
if (error && sres.status_flags.status_flag1[0] != 0x00 && sres.status_flags.status_flag2[0] != 0x00) {
|
return PM3_ERFTRANS;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sres.status_flags.status_flag1[0] != 0x00 && sres.status_flags.status_flag2[0] != 0x00) {
|
||||||
PrintAndLogEx(ERR, "\nError RC Write");
|
PrintAndLogEx(ERR, "\nError RC Write");
|
||||||
return PM3_ERFTRANS;
|
return PM3_ERFTRANS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue