mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Return a new packet from fragment reassembly instead of an old one.
PiperOrigin-RevId: 486246464
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user