Skip to content

Commit

Permalink
Update transport/tlsfrag/buffer.go
Browse files Browse the repository at this point in the history
Co-authored-by: Vinicius Fortuna <[email protected]>
  • Loading branch information
jyyi1 and fortuna authored Nov 17, 2023
1 parent ddf46f0 commit 4f00ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/tlsfrag/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var _ io.ReaderFrom = (*clientHelloBuffer)(nil)
func newClientHelloBuffer() *clientHelloBuffer {
// Allocate the 5 bytes header first, and then reallocate it to contain the entire packet later
return &clientHelloBuffer{
data: make([]byte, recordHeaderLen),
data: make([]byte, 0, recordHeaderLen),
valid: true,
toRead: recordHeaderLen,
}
Expand Down

0 comments on commit 4f00ec8

Please sign in to comment.