Browse Source

less cap

pull/1008/head
Darien Raymond 7 years ago
parent
commit
fc7da93d06
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      common/crypto/auth.go

2
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()

Loading…
Cancel
Save