1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-26 03:21:44 +03:00

qemu: check flags in qemuDomainGetXMLDesc

Although most functions with flags check to verify no application is
passing in flag bits that are currently undefined, for some reason
this function wasn't.
This commit is contained in:
Laine Stump 2011-07-02 00:53:06 -04:00
parent d3f7c7b151
commit 834ce603f9

View File

@ -3825,6 +3825,10 @@ static char *qemuDomainGetXMLDesc(virDomainPtr dom,
unsigned long balloon;
int err;
virCheckFlags(VIR_DOMAIN_XML_SECURE |
VIR_DOMAIN_XML_INACTIVE |
VIR_DOMAIN_XML_UPDATE_CPU, NULL);
qemuDriverLock(driver);
vm = virDomainFindByUUID(&driver->domains, dom->uuid);