add check
This commit is contained in:
@@ -278,7 +278,10 @@ static int EMVExchangeEx(EMVCommandChannel channel, bool ActivateField, bool Lea
|
|||||||
|
|
||||||
// COMPUTE APDU
|
// COMPUTE APDU
|
||||||
int datalen = 0;
|
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)
|
if (APDULogging)
|
||||||
PrintAndLogEx(SUCCESS, ">>>> %s", sprint_hex(data, datalen));
|
PrintAndLogEx(SUCCESS, ">>>> %s", sprint_hex(data, datalen));
|
||||||
|
|||||||
Reference in New Issue
Block a user