Return a new packet from fragment reassembly instead of an old one.

PiperOrigin-RevId: 486246464
This commit is contained in:
Lucas Manning
2022-11-04 15:41:34 -07:00
committed by gVisor bot
parent 5e2f66189c
commit 1fc476d7fe
@@ -167,7 +167,7 @@ func (r *reassembler) process(first, last uint16, more bool, proto uint8, pkt st
return r.holes[i].first < r.holes[j].first
})
resPkt := r.holes[0].pkt.IncRef()
resPkt := r.holes[0].pkt.Clone()
for i := 1; i < len(r.holes); i++ {
stack.MergeFragment(resPkt, r.holes[i].pkt)
}