diff --git a/core/src/trezor/wire/thp/thp_messages.py b/core/src/trezor/wire/thp/thp_messages.py index a506daaea..29b550048 100644 --- a/core/src/trezor/wire/thp/thp_messages.py +++ b/core/src/trezor/wire/thp/thp_messages.py @@ -121,7 +121,7 @@ def get_channel_allocation_response(nonce: bytes, new_cid: bytes) -> bytes: def get_codec_v1_error_message() -> bytes: # Codec_v1 magic constant "?##" + Failure message type + msg_size # + msg_data (code = "Failure_UnexpectedMessage", message = "Invalid protocol") - ERROR_MSG = b"\x3f\x23\x23\x00\x03\x00\x00\x00\x14\x08\x01\x12\x10\x49\x6e\x76\x61\x6c\x69\x64\x20\x70\x72\x6f\x74\x6f\x63\x6f\x6c" + ERROR_MSG = b"\x3f\x23\x23\x00\x03\x00\x00\x00\x14\x08\x01\x12\x10\x49\x6e\x76\x61\x6c\x69\x64\x20\x70\x72\x6f\x74\x6f\x63\x6f\x6c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" return ERROR_MSG diff --git a/core/src/trezor/wire/thp_v3.py b/core/src/trezor/wire/thp_v3.py index f5201568d..bcb33f8f4 100644 --- a/core/src/trezor/wire/thp_v3.py +++ b/core/src/trezor/wire/thp_v3.py @@ -56,6 +56,7 @@ async def thp_main_loop(iface: WireInterface, is_debug_session=False): if ctrl_byte == CODEC_V1: await _handle_codec_v1(iface, packet) + continue if cid == BROADCAST_CHANNEL_ID: await _handle_broadcast(iface, ctrl_byte, packet)