From: Luyao Huang Date: Thu, 5 Feb 2015 03:42:26 +0000 (+0800) Subject: qemu: Properly report error on uuid mismatch in the migration cookie X-Git-Tag: v1.2.13-rc1~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b2c9ce752b02fed4deabf91c534989ec8193071;p=thirdparty%2Flibvirt.git qemu: Properly report error on uuid mismatch in the migration cookie Add the missing jump to the error label when the uuid in the migration cookie XML does not match the uuid of the migrated domain. Signed-off-by: Luyao Huang Signed-off-by: Ján Tomko --- diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 8a8fa633db..879b1bf40f 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -1147,6 +1147,7 @@ qemuMigrationCookieXMLParse(qemuMigrationCookiePtr mig, virReportError(VIR_ERR_INTERNAL_ERROR, _("Incoming cookie data had unexpected UUID %s vs %s"), tmp, uuidstr); + goto error; } VIR_FREE(tmp);