diff --git a/common/crypto/auth.go b/common/crypto/auth.go index 9b532293..f5955551 100644 --- a/common/crypto/auth.go +++ b/common/crypto/auth.go @@ -319,6 +319,10 @@ func (w *AuthenticationWriter) writePacket(mb buf.MultiBuffer) error { mb2Write.Append(eb) } + if mb2Write.IsEmpty() { + return nil + } + return w.writer.WriteMultiBuffer(mb2Write) }