diff --git a/src/netstack/yggdrasil.go b/src/netstack/yggdrasil.go index 3a582aa..d46ff74 100644 --- a/src/netstack/yggdrasil.go +++ b/src/netstack/yggdrasil.go @@ -97,6 +97,10 @@ func (e *YggdrasilNIC) WritePackets( list stack.PacketBufferList, ) (int, tcpip.Error) { var i int = 0 + // Trap for RST-packets generated by replyWithReset + if list.Len() < 2 { + return i, nil + } for i, pkt := range list.AsSlice() { vv := pkt.ToView() n, err := vv.Read(e.writeBuf)