[libvirt] [PATCH 4/4] rpc: use virNetMessageClearPayload in client

Pavel Hrdina phrdina at redhat.com
Thu May 5 17:30:04 UTC 2016

On Wed, Apr 27, 2016 at 06:34:01PM -0400, Cole Robinson wrote:
> This removes the opencoded payload freeing in the client, to use
> the shared virNetMessageClearPayload call. Two changes:
> - ClearPayload sets nfds=0, which fixes a potential crash if
>   an error path called virNetMessageFree/Clear on the message
>   after fds was free'd
> - We drop the inner loop VIR_FORCE_CLOSE... this may mean fds are
>   kept open a little bit longer if the call is blocking but in
>   practice I don't think it will have any effect
> ---


More information about the libvir-list mailing list