We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f07fe48 commit 4b69299Copy full SHA for 4b69299
src/byte_buf_utils.rs
@@ -89,8 +89,8 @@ pub fn try_get_uuid(buf: &mut BytesMut) -> anyhow::Result<Uuid> {
89
return Err(Error::msg("Not enough data"));
90
}
91
92
- if len > 16 {
93
- buf.advance(len - 16); // Normalize uuid length
+ if len > 16 && read_varint(buf)? == 0 {
+ return Err(Error::msg("No UUID in packet"));
94
95
96
let mut bytes = [0u8; 16];
0 commit comments