aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--device/receive.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/receive.go b/device/receive.go
index 1392957..6f9d90a 100644
--- a/device/receive.go
+++ b/device/receive.go
@@ -490,7 +490,7 @@ func (peer *Peer) RoutineSequentialReceiver(maxBatchSize int) {
continue
}
field := elem.packet[IPv6offsetPayloadLength : IPv6offsetPayloadLength+2]
- length := binary.BigEndian.Uint16(field)
+ length := uint32(binary.BigEndian.Uint16(field))
length += ipv6.HeaderLen
if int(length) > len(elem.packet) {
continue