diff --git a/common/crypto/auth.go b/common/crypto/auth.go index dc158f0c..ba615bc6 100644 --- a/common/crypto/auth.go +++ b/common/crypto/auth.go @@ -303,7 +303,7 @@ func (w *AuthenticationWriter) writePacket(mb buf.MultiBuffer) error { for !mb.IsEmpty() { b := mb.SplitFirst() - if b == nil { + if b.IsEmpty() { continue } eb, err := w.seal(b)