diff --git a/src/yggdrasil/stream.go b/src/yggdrasil/stream.go index 011943f5..56d4754a 100644 --- a/src/yggdrasil/stream.go +++ b/src/yggdrasil/stream.go @@ -44,6 +44,7 @@ func (s *stream) writeMsg(bs []byte) (int, error) { padLen := len(buf[0]) + len(buf[1]) buf = append(buf, bs) totalLen := padLen + len(bs) + s.outputBuffer = buf[:0] // So we can reuse the same underlying array later var bn int for bn < totalLen { n, err := buf.WriteTo(s.rwc)