netstack: fix UDP forwarding refcount bug

Fixes #8448.
This commit is contained in:
Kevin Krakauer
2023-01-31 22:24:59 +00:00
parent 7058ea8d30
commit dae3aa6eee
+1 -1
View File
@@ -47,7 +47,7 @@ func (f *Forwarder) HandlePacket(id stack.TransportEndpointID, pkt stack.PacketB
f.handler(&ForwarderRequest{
stack: f.stack,
id: id,
pkt: pkt,
pkt: pkt.IncRef(),
})
return true