Skip to content

Commit

Permalink
Fix groupAddress index out of range error
Browse files Browse the repository at this point in the history
Signed-off-by: ceclinux <src655@gmail.com>
  • Loading branch information
ceclinux authored and Ruochen committed Jul 25, 2023
1 parent f52e481 commit a76dc44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.12.0
v0.12.1
2 changes: 1 addition & 1 deletion protocol/igmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (p *IGMPv3Query) MarshalBinary() (data []byte, err error) {
n += 1
binary.BigEndian.PutUint16(data[n:], p.Checksum)
n += 2
copy(data[n:n+4], p.GroupAddress[12:16])
copy(data[n:n+4], p.GroupAddress.To4())
n += 4
sBit := uint8(0x0)
if p.SuppressRouterProcessing {
Expand Down

0 comments on commit a76dc44

Please sign in to comment.