Skip to content

Commit

Permalink
Fix Packet.Raw population
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored and Sean-Der committed Jun 14, 2023
1 parent e655591 commit b85163e
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 @@ -482,7 +482,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 b85163e

Please sign in to comment.