[PATCH] remoteOpenConn: Pass correct variable to virConnectSetIdentity()

Erik Skultety eskultet at redhat.com
Thu May 19 08:13:02 UTC 2022


On Thu, May 19, 2022 at 10:00:26AM +0200, Michal Privoznik wrote:
> The remoteOpenConn() function was refactored recently. As a part
> of that new variable @newconn was introduced which holds
> virConnect object as it's being gradually constructed throughout
> the function. At the very end, when everything succeeded the
> variable is stolen into passed @conn. However, there was one
> line missed in the refactor which still access the @conn instead
> of @newconn leading to a NULL dereference.
> 
> Fixes: f7c422993e4c7ca3e58b1d0d69f4772851af399f
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---

CI++

Reviewed-by: Erik Skultety <eskultet at redhat.com>



More information about the libvir-list mailing list