From fc7da93d06febf7f18e44cdc5cbfb977b8827758 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 28 Mar 2018 22:24:01 +0200 Subject: [PATCH] less cap --- 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 84f5b41ab..416645315 100644 --- a/common/crypto/auth.go +++ b/common/crypto/auth.go @@ -204,7 +204,7 @@ func (w *AuthenticationWriter) writeStream(mb buf.MultiBuffer) error { func (w *AuthenticationWriter) writePacket(mb buf.MultiBuffer) error { defer mb.Release() - mb2Write := buf.NewMultiBufferCap(len(mb) * 2) + mb2Write := buf.NewMultiBufferCap(len(mb) + 1) for { b := mb.SplitFirst()