From 2d155e23489aa91c8f058d43b97dc1fa6f2476c8 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 28 Sep 2020 17:07:02 +0200 Subject: [PATCH] qemuMigrationSrcBeginPhase: Use qemuMigrationCookieNew MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need an empty cookie, so use qemuMigrationCookieNew instead of qemuMigrationEatCookie with NULL/0 arguments. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/qemu/qemu_migration.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 9eaf3fcd39..40bb28d851 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -2263,8 +2263,7 @@ qemuMigrationSrcBeginPhase(virQEMUDriverPtr driver, if (!(flags & VIR_MIGRATE_OFFLINE)) cookieFlags |= QEMU_MIGRATION_COOKIE_CAPS; - if (!(mig = qemuMigrationEatCookie(driver, vm->def, - priv->origname, priv, NULL, 0, 0))) + if (!(mig = qemuMigrationCookieNew(vm->def, priv->origname))) return NULL; if (qemuMigrationCookieFormat(mig, driver, vm,