summaryrefslogtreecommitdiffstats
path: root/mqtt-tester/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2023-01-17 10:18:15 +0100
committerMatthias Beyer <mail@beyermatthias.de>2023-01-23 10:05:02 +0100
commit42b1fefe019a3414c40bdf8bb58f686ca2dba597 (patch)
treea4fc70e4231ee1670645007a2eb604e0c7da60d1 /mqtt-tester/src
parentd6755a59a5356b8cd32d7a14aaf7340bb3f8f832 (diff)
Fix: The string length is a byte 4, not 5
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'mqtt-tester/src')
-rw-r--r--mqtt-tester/src/behaviour/wait_for_connect.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mqtt-tester/src/behaviour/wait_for_connect.rs b/mqtt-tester/src/behaviour/wait_for_connect.rs
index a3bfdaf..8563f22 100644
--- a/mqtt-tester/src/behaviour/wait_for_connect.rs
+++ b/mqtt-tester/src/behaviour/wait_for_connect.rs
@@ -93,7 +93,7 @@ fn find_connect_flags(bytes: &[u8]) -> Option<u8> {
return None;
}
- let str_len = getbyte!(4);
+ let str_len = getbyte!(3);
tracing::trace!(?str_len, "Length of protocol name");
let connect_flag_position = 4usize + (str_len as usize) + 2;