]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Properly report error on uuid mismatch in the migration cookie
authorLuyao Huang <lhuang@redhat.com>
Thu, 5 Feb 2015 03:42:26 +0000 (11:42 +0800)
committerJán Tomko <jtomko@redhat.com>
Thu, 5 Feb 2015 07:14:36 +0000 (08:14 +0100)
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 <lhuang@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c

index 8a8fa633db1553442a6d27a69c49f4401bf4a9af..879b1bf40f456306bb67791e6139dba697884a28 100644 (file)
@@ -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);