Rather than open coding calls. I can't see any reason not to
if (qemuCanonicalizeMachine(def, qemuCaps) < 0)
goto cleanup;
+ if (virSecurityManagerVerify(driver->securityManager, def) < 0)
+ goto cleanup;
+
ret = 0;
cleanup:
virObjectUnref(qemuCaps);
if (virDomainCreateXMLEnsureACL(conn, def) < 0)
goto cleanup;
- if (virSecurityManagerVerify(driver->securityManager, def) < 0)
- goto cleanup;
-
if (!(qemuCaps = virQEMUCapsCacheLookup(driver->qemuCapsCache, def->emulator)))
goto cleanup;
if (virDomainDefineXMLFlagsEnsureACL(conn, def) < 0)
goto cleanup;
- if (virSecurityManagerVerify(driver->securityManager, def) < 0)
- goto cleanup;
-
if (!(qemuCaps = virQEMUCapsCacheLookup(driver->qemuCapsCache, def->emulator)))
goto cleanup;