1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00
This commit is contained in:
Darien Raymond 2018-03-28 22:24:01 +02:00
parent 141b31eb19
commit fc7da93d06
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

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