mirror of https://github.com/v2ray/v2ray-core
check empty payload
parent
09824b9b1a
commit
3df32aabbc
|
@ -303,7 +303,7 @@ func (w *AuthenticationWriter) writePacket(mb buf.MultiBuffer) error {
|
||||||
|
|
||||||
for !mb.IsEmpty() {
|
for !mb.IsEmpty() {
|
||||||
b := mb.SplitFirst()
|
b := mb.SplitFirst()
|
||||||
if b == nil {
|
if b.IsEmpty() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
eb, err := w.seal(b)
|
eb, err := w.seal(b)
|
||||||
|
|
Loading…
Reference in New Issue