Skip to content

Commit

Permalink
Fix Packet.Raw population
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Jun 12, 2023
1 parent 3957fd9 commit f3a7912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ func (p Packet) Marshal() (buf []byte, err error) {
}

// MarshalTo serializes the packet and writes to the buffer.
func (p Packet) MarshalTo(buf []byte) (n int, err error) {
func (p *Packet) MarshalTo(buf []byte) (n int, err error) {
p.Header.Padding = p.PaddingSize != 0
n, err = p.Header.MarshalTo(buf)
if err != nil {
Expand Down

0 comments on commit f3a7912

Please sign in to comment.