Skip to content

Commit 5b8bd31

Browse files
authored
Merge pull request #2984 from jmichelp/patch-5
Fix data being xored twice
2 parents 334a0b1 + 0c061d9 commit 5b8bd31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/src/cmdhflegic.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ static int decode_and_print_memory(uint16_t card_size, const uint8_t *input_buff
300300
// does this one work? (Answer: Only if KGH/BGH is used with BCD encoded card number! So maybe this will show just garbage...)
301301
if (wrp_len == 8) {
302302
PrintAndLogEx(SUCCESS, "Card ID: " _YELLOW_("%2X%02X%02X"),
303-
data[i - 4] ^ crc,
304-
data[i - 3] ^ crc,
305-
data[i - 2] ^ crc
303+
data[i - 4],
304+
data[i - 3],
305+
data[i - 2]
306306
);
307307
}
308308
}

0 commit comments

Comments
 (0)