aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/message/handshake
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2020-01-17 16:03:59 +0100
committerMax Audron <audron@cocaine.farm>2020-01-17 16:03:59 +0100
commit7cde729ee4b8f618727cd46ec2a2498595b5a058 (patch)
tree9b0ef90ebcb052c2540270123454d1c9f6be8def /src/protocol/message/handshake
parentadd error handling (diff)
add ClientLogin
Diffstat (limited to 'src/protocol/message/handshake')
-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 be290e9..f099b0f 100644
--- a/src/protocol/message/handshake/types.rs
+++ b/src/protocol/message/handshake/types.rs
@@ -81,7 +81,7 @@ impl HandshakeQRead for VariantMap {
let mut pos = 8;
let len: usize = len as usize;
loop {
- if pos >= (len - 4) { break; }
+ if pos >= len { break; }
pos += Variant::read(s, &mut b[pos..])?;
pos += Variant::read(s, &mut b[pos..])?;
}