mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -07:00
Merge pull request #2186 from wh201906/fix_emv_reader
Fix `ExchangeAPDUSC()` in `cmdsmartcard.c`
This commit is contained in:
commit
56b5bde713
1 changed files with 4 additions and 0 deletions
|
@ -1417,6 +1417,10 @@ int ExchangeAPDUSC(bool verbose, uint8_t *datain, int datainlen, bool activateCa
|
||||||
SendCommandNG(CMD_SMART_RAW, (uint8_t *)payload, sizeof(smart_card_raw_t) + 5);
|
SendCommandNG(CMD_SMART_RAW, (uint8_t *)payload, sizeof(smart_card_raw_t) + 5);
|
||||||
datain[4] = 0;
|
datain[4] = 0;
|
||||||
len = smart_responseEx(dataout, maxdataoutlen, verbose);
|
len = smart_responseEx(dataout, maxdataoutlen, verbose);
|
||||||
|
if (len < 0) {
|
||||||
|
free(payload);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free(payload);
|
free(payload);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue