diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index c6f814e065480f6cac79c61be485731e7e0c2cd2..a7cfadac6fe77c50edf3c918e5940cb8b5e0fcdb 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz/openvz_driver.c @@ -2053,13 +2053,13 @@ openvzDomainUpdateDeviceFlags(virDomainPtr dom, const char *xml, openvzDriverLock(driver); vm = virDomainFindByUUID(&driver->domains, dom->uuid); - vmdef = vm->def; if (!vm) { virReportError(VIR_ERR_NO_DOMAIN, "%s", _("no domain with matching uuid")); goto cleanup; } + vmdef = vm->def; if (virStrToLong_i(vmdef->name, NULL, 10, &veid) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s",