mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-12 18:25:07 +08:00
add check
This commit is contained in:
parent
e61a65fbe8
commit
5fd2a7613f
1 changed files with 4 additions and 1 deletions
|
@ -278,7 +278,10 @@ static int EMVExchangeEx(EMVCommandChannel channel, bool ActivateField, bool Lea
|
|||
|
||||
// COMPUTE APDU
|
||||
int datalen = 0;
|
||||
APDUEncodeS(&apdu, false, IncludeLe ? 0x100 : 0x00, data, &datalen);
|
||||
if (APDUEncodeS(&apdu, false, IncludeLe ? 0x100 : 0x00, data, &datalen)) {
|
||||
PrintAndLogEx(ERR, "APDU encoding error.");
|
||||
return 201;
|
||||
}
|
||||
|
||||
if (APDULogging)
|
||||
PrintAndLogEx(SUCCESS, ">>>> %s", sprint_hex(data, datalen));
|
||||
|
|
Loading…
Reference in a new issue