qemu: do not propagate return value of qemuDomainObjExitMonitor

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Ján Tomko 2021-11-24 13:42:09 +01:00
parent 8a51f4c6e4
commit 0200cd4910

View File

@ -1813,7 +1813,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);