1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-07-26 11:44:22 -04:00

check empty payload

This commit is contained in:
Darien Raymond 2018-08-29 16:37:12 +02:00
parent 09824b9b1a
commit 3df32aabbc
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

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