mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 05:45:46 +00:00
* 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:
parent
5ced7bd1fc
commit
657b5eb50c
@ -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>
|
Fri Jul 13 10:28:53 CEST 2007 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/virterror.c src/xml.c include/libvirt/virterror.h:
|
* src/virterror.c src/xml.c include/libvirt/virterror.h:
|
||||||
|
@ -1351,6 +1351,9 @@ virParseXMLDevice(virConnectPtr conn, char *xmldesc, int hvm, int xendConfigVers
|
|||||||
else if (xmlStrEqual(node->name, BAD_CAST "interface")) {
|
else if (xmlStrEqual(node->name, BAD_CAST "interface")) {
|
||||||
if (virDomainParseXMLIfDesc(conn, node, &buf, hvm, xendConfigVersion) != 0)
|
if (virDomainParseXMLIfDesc(conn, node, &buf, hvm, xendConfigVersion) != 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
} else {
|
||||||
|
virXMLError(conn, VIR_ERR_XML_ERROR, (const char *) node->name, 0);
|
||||||
|
goto error;
|
||||||
}
|
}
|
||||||
cleanup:
|
cleanup:
|
||||||
if (xml != NULL)
|
if (xml != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user