Skip to content

Commit 53ac49c

Browse files
committed
fix(core/thp): correct Failure_InvalidProtocol constant message
[no changelog]
1 parent cdee99d commit 53ac49c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/trezor/wire/thp/interface_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ async def _handle_codec_v1(self, packet: AnyBytes) -> None:
172172
response = bytearray(self._iface.TX_PACKET_LEN)
173173
# Codec_v1 magic constant:
174174
# "?##" + Failure message type + msg_size + msg_data (code = "Failure_InvalidProtocol")
175-
utils.memcpy(response, 0, b"?##\x00\x03\x00\x00\x00\x14\x08\x11", 0)
175+
utils.memcpy(response, 0, b"?##\x00\x03\x00\x00\x00\x02\x08\x11", 0)
176176
await self._write_packets([response])
177177

178178
async def _handle_broadcast(self, packet: AnyBytes) -> None:

0 commit comments

Comments
 (0)