mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Avoid overwriting errors from virGetHostname
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user