* src/xml.c: applied modified patch from Masayuki Sunou for

device hot plug description with a wrong root element.
Daniel
This commit is contained in:
Daniel Veillard 2007-07-13 12:26:11 +00:00
parent 5ced7bd1fc
commit 657b5eb50c
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Fri Jul 13 14:25:16 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/xml.c: applied modified patch from Masayuki Sunou for
device hot plug description with a wrong root element.
Fri Jul 13 10:28:53 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/virterror.c src/xml.c include/libvirt/virterror.h:

View File

@ -1351,6 +1351,9 @@ virParseXMLDevice(virConnectPtr conn, char *xmldesc, int hvm, int xendConfigVers
else if (xmlStrEqual(node->name, BAD_CAST "interface")) {
if (virDomainParseXMLIfDesc(conn, node, &buf, hvm, xendConfigVersion) != 0)
goto error;
} else {
virXMLError(conn, VIR_ERR_XML_ERROR, (const char *) node->name, 0);
goto error;
}
cleanup:
if (xml != NULL)