mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-03 11:57:39 +03:00
Fix missing clear iovecList for unix vectorised packet writer
This commit is contained in:
parent
0d1b3d6d6d
commit
fa0cc448dc
1 changed files with 3 additions and 0 deletions
|
@ -84,6 +84,9 @@ func (w *SyscallVectorisedPacketWriter) WriteVectorisedPacket(buffers []*buf.Buf
|
|||
if innerErr != nil {
|
||||
err = innerErr
|
||||
}
|
||||
for index := range iovecList {
|
||||
iovecList[index] = unix.Iovec{}
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue