]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virGetConnectGeneric: Only delegate existing identities
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 11 Nov 2022 13:19:50 +0000 (14:19 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 15 Nov 2022 10:04:33 +0000 (11:04 +0100)
commit8e527dd653814fa0c6266228ae46f1aed0159608
tree6f7c3291a2ccefc51902c55078b8c3adaf0d54d4
parent15c11a7e549f44dd92b2afd93d18722b883f13ed
virGetConnectGeneric: Only delegate existing identities

Inside virt-qemu-run, just like in virsh for example, there is no
identity set in the current thread, so we should not try to set it,
otherwise things like connecting to other drivers might fail and on
top of that there is no error set so the user can't even see what's
wrong.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2000075
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/driver.c