]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: Do not try to add secret object for TLS if it does not exist
authorPeter Krempa <pkrempa@redhat.com>
Wed, 4 Jul 2018 14:28:58 +0000 (16:28 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 10 Jul 2018 15:32:58 +0000 (17:32 +0200)
commit62ef8227e2717618c96fa17f2d4f5b7570bbe980
tree851e6fc2ee376381959f27ab48f03dfd22a7f469
parentab435a4be4673a9a38e0315864b9cf4f9bee03e7
qemu: hotplug: Do not try to add secret object for TLS if it does not exist

The check whether the object holding secret for decryption of the TLS
environment was wrong and would always attempt to add the object. This
lead to a crash due to recent refactors.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1598015

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_hotplug.c