Don't use VIR_DOMAIN_XML_SECURE when parsing XML

The VIR_DOMAIN_XML_SECURE flag only has effect on the formatting
of XML so should not be passed to virDomainDefParseNode
This commit is contained in:
Daniel P. Berrange 2014-11-18 15:37:00 +00:00
parent 4d2ebc71ce
commit 4d6ed1bf0b
2 changed files with 2 additions and 3 deletions

View File

@ -287,8 +287,7 @@ virDomainSnapshotDefParse(xmlXPathContextPtr ctxt,
def->dom = virDomainDefParseNode(ctxt->node->doc, domainNode,
caps, xmlopt,
expectedVirtTypes,
(VIR_DOMAIN_XML_INACTIVE |
VIR_DOMAIN_XML_SECURE));
VIR_DOMAIN_XML_INACTIVE);
if (!def->dom)
goto cleanup;
} else {

View File

@ -3558,7 +3558,7 @@ phypDomainCreateXML(virConnectPtr conn,
if (!(def = virDomainDefParseString(xml, phyp_driver->caps,
phyp_driver->xmlopt,
1 << VIR_DOMAIN_VIRT_PHYP,
VIR_DOMAIN_XML_SECURE)))
0)))
goto err;
/* checking if this name already exists on this system */