1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-11 09:17:52 +03:00

qemu: fix error propagation in qemuMigrationBegin

If virCloseCallbacksSet fails, qemuMigrationBegin must return NULL to
indicate an error occurred.

Signed-off-by: Michael Chapman <mike@very.puzzling.org>
This commit is contained in:
Michael Chapman 2015-03-30 13:40:59 +11:00 committed by Ján Tomko
parent 7578cc17f5
commit 77ddd0bba2

View File

@ -2761,8 +2761,10 @@ qemuMigrationBegin(virConnectPtr conn,
* place. * place.
*/ */
if (virCloseCallbacksSet(driver->closeCallbacks, vm, conn, if (virCloseCallbacksSet(driver->closeCallbacks, vm, conn,
qemuMigrationCleanup) < 0) qemuMigrationCleanup) < 0) {
VIR_FREE(xml);
goto endjob; goto endjob;
}
qemuMigrationJobContinue(vm); qemuMigrationJobContinue(vm);
} else { } else {
goto endjob; goto endjob;