aboutsummaryrefslogtreecommitdiff
path: root/src/protocol
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2020-01-20 16:13:28 +0100
committerMax Audron <audron@cocaine.farm>2020-01-20 16:13:28 +0100
commit6cde3378267abfacdf770317844bc916545f8582 (patch)
tree8c2abccc593a8782786a8d00e2f0fd44685c0538 /src/protocol
parentupdate (diff)
update
Diffstat (limited to '')
-rw-r--r--src/protocol/message/handshake/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol/message/handshake/types.rs b/src/protocol/message/handshake/types.rs
index c809764..3c5d019 100644
--- a/src/protocol/message/handshake/types.rs
+++ b/src/protocol/message/handshake/types.rs
@@ -77,7 +77,7 @@ impl HandshakeQRead for VariantMap {
let ulen = len as usize;
// Read the 00 00 00 0a VariantType bytes and discard
- s.read(&mut b[4..ulen])?;
+ s.read(&mut b[4..(ulen + 4)])?;
// let mut pos = 8;
// let len: usize = len as usize;