From d23fd6183662e3adc4a5abb293d4bd2aad61e882 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 29 May 2018 20:06:35 +0200 Subject: [PATCH] qemu: hotplug: Don't mandate passing of 'secAlias' in qemuDomainGetTLSObjects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some reason the function returned an error if secAlias was not passed in. It's not an error, in fact it's desired. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/qemu/qemu_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index 98f8df6959..713f88fcf5 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -1513,7 +1513,7 @@ qemuDomainGetTLSObjects(virQEMUCapsPtr qemuCaps, if (qemuBuildSecretInfoProps(secinfo, secProps) < 0) return -1; - if (!secAlias || + if (secAlias && !(*secAlias = qemuDomainGetSecretAESAlias(srcAlias, false))) return -1; }