1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

protobuf: fix loading embedded messages

This commit is contained in:
Jan Pochyla 2016-11-11 11:21:18 +01:00
parent 4f8e01c5df
commit cf2bc1a28e

View File

@ -176,6 +176,7 @@ class MessageType(Type):
if issubclass(ftype, MessageType):
flen = await UVarintType.load(source)
slen = source.set_limit(flen)
target.send((field, None))
await ftype.load(source, target)
source.set_limit(slen)
else: