Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
src/qemu/qemu_hotplug.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index 3373ec2cdf..7ae0088c6a 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotplug.c
@@ -1816,7 +1816,8 @@ qemuDomainAddTLSObjects(virQEMUDriver *driver,
qemuMonitorAddObject(priv->mon, tlsProps, NULL) < 0)
goto error;
- return qemuDomainObjExitMonitor(driver, vm);
+ qemuDomainObjExitMonitor(driver, vm);
+ return 0;
error:
virErrorPreserveLast(&orig_err);
--
2.31.1