Skip to content

Commit

Permalink
firmware/sniffer: Fix copy+paste when logging invalid INS bytes
Browse files Browse the repository at this point in the history
Change-Id: I2679415f1853d4b4a33fca33791fb0bfc6908a1b
  • Loading branch information
laf0rge committed Nov 15, 2022
1 parent 5f651e5 commit 5523faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/libcommon/source/sniffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ static void process_byte_tpdu(uint8_t byte)
break;
case TPDU_S_INS:
if ((0x60 == (byte & 0xf0)) || (0x90 == (byte & 0xf0))) {
TRACE_WARNING("invalid CLA 0x%02x\n\r", byte);
TRACE_WARNING("invalid INS 0x%02x\n\r", byte);
led_blink(LED_RED, BLINK_2F_O); /* indicate error to user */
usb_send_tpdu(SNIFF_DATA_FLAG_ERROR_MALFORMED); /* send ATR to host software using USB */
change_state(ISO7816_S_WAIT_TPDU); /* go back to TPDU state */
Expand Down

0 comments on commit 5523faf

Please sign in to comment.