提交 64bd680d 编写于 作者: C Cole Robinson

rpc: Clear more in virNetMessageClearPayload

Set all counters to 0. This doesn't impact current users, but
future users will want this
上级 220c4e85
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册