Fix missing clear iovecList for unix vectorised packet writer

This commit is contained in:
世界 2023-12-21 20:17:43 +08:00
parent 0d1b3d6d6d
commit fa0cc448dc
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

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