]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Avoid overwriting errors from virGetHostname
authorJiri Denemark <jdenemar@redhat.com>
Wed, 3 Aug 2011 10:00:17 +0000 (12:00 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 5 Aug 2011 16:36:14 +0000 (18:36 +0200)
src/qemu/qemu_migration.c

index 7aeea69ec7e5dc155b21101aad0c8c8f21d3c912..4d0e062853251e81063421a74c8efe3df99d5927 100644 (file)
@@ -257,7 +257,7 @@ qemuMigrationCookieNew(virDomainObjPtr dom)
     memcpy(mig->uuid, dom->def->uuid, VIR_UUID_BUFLEN);
 
     if (!(mig->localHostname = virGetHostname(NULL)))
-        goto no_memory;
+        goto error;
     if (virGetHostUUID(mig->localHostuuid) < 0) {
         qemuReportError(VIR_ERR_INTERNAL_ERROR, "%s",
                         _("Unable to obtain host UUID"));