diff --git a/reverse/TLV/public/tlv b/reverse/TLV/public/tlv index 4d987e0..2be9a20 100644 Binary files a/reverse/TLV/public/tlv and b/reverse/TLV/public/tlv differ diff --git a/reverse/TLV/setup/main.rs b/reverse/TLV/setup/main.rs index a4b289c..3e75fbd 100644 --- a/reverse/TLV/setup/main.rs +++ b/reverse/TLV/setup/main.rs @@ -184,7 +184,7 @@ fn handle_client(mut stream: TcpStream) { } else { println!("Not enough bytes to construct packet"); let hoffset = offset - ((TYPE_LENGTH + LENGTH_LENGTH) as usize); - incomplete_packet.extend_from_slice(&buffer[hoffset..]); + incomplete_packet.extend_from_slice(&bytes[hoffset..]); break; } diff --git a/reverse/TLV/setup/tlv b/reverse/TLV/setup/tlv index 6efb65f..d5b4b07 100755 Binary files a/reverse/TLV/setup/tlv and b/reverse/TLV/setup/tlv differ