mirror of
https://github.com/slackhq/nebula.git
synced 2026-05-16 12:57:38 +02:00
gottem
This commit is contained in:
@@ -268,7 +268,7 @@ func (r *Offload) Read(p []wire.TunPacket, mem []byte) (int, error) {
|
||||
if n <= 0 {
|
||||
break
|
||||
}
|
||||
if p, err = r.decodeRead(p, mem, n); err != nil {
|
||||
if p, err = r.decodeRead(p, mem[rxOff:], n); err != nil {
|
||||
// Drop this packet and stop the drain; we'd rather hand off
|
||||
// what we have than keep spinning here.
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user