one byte for future use

This commit is contained in:
rustdesk 2024-01-10 11:48:23 +08:00
parent f7b35defc9
commit fdb038c7c9

View File

@ -330,7 +330,7 @@ impl Encrypt {
}
pub fn dec(&mut self, bytes: &mut BytesMut) -> Result<(), Error> {
if bytes.is_empty() {
if bytes.len() <= 1 {
return Ok(());
}
self.2 += 1;