Skip to content

Commit

Permalink
reverse(tlv): properly create header
Browse files Browse the repository at this point in the history
  • Loading branch information
neochristou committed May 1, 2024
1 parent d561330 commit 428195c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file modified reverse/TLV/public/tlv
Binary file not shown.
2 changes: 1 addition & 1 deletion reverse/TLV/setup/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ fn handle_client(mut stream: TcpStream) {

while offset + ((TYPE_LENGTH + LENGTH_LENGTH) as usize) <= n {

if let Some(header) = TLVHeader::from_bytes(&bytes) {
if let Some(header) = TLVHeader::from_bytes(&bytes[offset..]) {

offset += (TYPE_LENGTH + LENGTH_LENGTH) as usize;
let packet_bytes = &bytes[offset..];
Expand Down
Binary file modified reverse/TLV/setup/tlv
Binary file not shown.

0 comments on commit 428195c

Please sign in to comment.