From 99acac52a28f3deff4882a0e08ae177ef2364f58 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Wed, 31 Jul 2024 09:41:14 -0700 Subject: [PATCH] constraint: prefix should encode for the length of the following buffer Signed-off-by: Arthur Gautier --- src/proto/extension/constraint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto/extension/constraint.rs b/src/proto/extension/constraint.rs index c6ea08b..c14be8c 100644 --- a/src/proto/extension/constraint.rs +++ b/src/proto/extension/constraint.rs @@ -290,7 +290,7 @@ mod tests { #[rustfmt::skip] let mut buffer: &[u8] = const_str::concat_bytes!( - [0, 0, 0, 114], // + [0, 0, 0, 110], // [0, 0, 0, 12], //from: [0, 0, 0, 0], //username [0, 0, 0, 0], //hostname