Skip to content

Commit

Permalink
smh2
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcrust committed Sep 27, 2023
1 parent 305e852 commit 27bb4a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion transports/noise/src/io/framed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ impl<S: SessionState> Codec<S> {
}
};

let prefix = u16::to_be_bytes(n as u16);
self.encrypt_buffer.truncate(n);

dst.put_u16(n as u16);
//dst.put_u16(n as u16);
dst.put(&prefix[..]);
dst.put(&self.encrypt_buffer[..]);

Ok(())
Expand Down

0 comments on commit 27bb4a1

Please sign in to comment.