sniff: fix ATR checksum calculation

this issue also cause the sent ATR to be empty

Change-Id: I6edff7aeb3185c835656acde75886fb6c90c0582
This commit is contained in:
Kévin Redon
2018-07-28 17:13:41 +02:00
parent 697199676e
commit ec396bf402

View File

@@ -505,7 +505,7 @@ static void process_byte_atr(uint8_t byte)
if (ATR_S_WAIT_TCK == atr_state) {
uint8_t ui;
uint8_t checksum = 0;
for (ui = 1; ui < atr_i; atr_i++) {
for (ui = 1; ui < atr_i; ui++) {
checksum ^= atr[ui];
}
if (checksum) {