commit | 51f6971f5f06ec101e5fbcabe5a49477708540f3 | [log] [tgz] |
---|---|---|
author | Ben Linsay <blinsay@gmail.com> | Sat Oct 20 21:30:50 2018 -0400 |
committer | Adam Langley <agl@google.com> | Thu Apr 18 17:22:56 2019 +0000 |
tree | 3f95a32c363aa1af42f79fafbd682455e728b40e | |
parent | 0174f2b976d6d6cc522ed09a4b48e5b940a49c2a [diff] |
go/protocol: fix out of order tag detection out of order tag detection wasn't happening because the previous tag value wasn't being set correctly in the decode loop Change-Id: I060d4b15312cd897a1c2d15d4c8b917c2df30128
diff --git a/go/protocol/protocol.go b/go/protocol/protocol.go index a1f27b1..88c4298 100644 --- a/go/protocol/protocol.go +++ b/go/protocol/protocol.go
@@ -201,6 +201,7 @@ payloads = payloads[length:] ret[tag] = payload currentOffset = nextOffset + lastTag = tag } return ret, nil