From 3df32aabbc4b7282b55c661da40bd6624ca66aba Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 29 Aug 2018 16:37:12 +0200 Subject: [PATCH] check empty payload --- common/crypto/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)