mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
rpc: Clear more in virNetMessageClearPayload
Set all counters to 0. This doesn't impact current users, but future users will want this
This commit is contained in:
1 parent
220c4e85b3
commit
64bd680d42
1 file changed
+6
@@ -56,7 +56,13 @@ virNetMessageClearPayload(virNetMessagePtr msg)
|
||||
|
||||
for (i = 0; i < msg->nfds; i++)
|
||||
VIR_FORCE_CLOSE(msg->fds[i]);
|
||||
|
||||
msg->donefds = 0;
|
||||
msg->nfds = 0;
|
||||
VIR_FREE(msg->fds);
|
||||
|
||||
msg->bufferOffset = 0;
|
||||
msg->bufferLength = 0;
|
||||
VIR_FREE(msg->buffer);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user