mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-29 17:19:07 -04:00
check empty payload
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user