mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
Fix NULL dereference caused by ACL filtering of domains
Caused by 763973607d
.
This commit is contained in:
parent
fe89fd3b40
commit
db0a18a165
@ -3221,7 +3221,8 @@ libxlConnectNumOfDefinedDomains(virConnectPtr conn)
|
|||||||
|
|
||||||
libxlDriverLock(driver);
|
libxlDriverLock(driver);
|
||||||
n = virDomainObjListNumOfDomains(driver->domains, false,
|
n = virDomainObjListNumOfDomains(driver->domains, false,
|
||||||
virConnectNumOfDefinedDomainsCheckACL, NULL);
|
virConnectNumOfDefinedDomainsCheckACL,
|
||||||
|
conn);
|
||||||
libxlDriverUnlock(driver);
|
libxlDriverUnlock(driver);
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
|
@ -5887,7 +5887,8 @@ static int qemuConnectListDefinedDomains(virConnectPtr conn,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
ret = virDomainObjListGetInactiveNames(driver->domains, names, nnames,
|
ret = virDomainObjListGetInactiveNames(driver->domains, names, nnames,
|
||||||
virConnectListDefinedDomainsCheckACL, NULL);
|
virConnectListDefinedDomainsCheckACL,
|
||||||
|
conn);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
return ret;
|
return ret;
|
||||||
@ -5901,7 +5902,8 @@ static int qemuConnectNumOfDefinedDomains(virConnectPtr conn) {
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
ret = virDomainObjListNumOfDomains(driver->domains, false,
|
ret = virDomainObjListNumOfDomains(driver->domains, false,
|
||||||
virConnectNumOfDefinedDomainsCheckACL, NULL);
|
virConnectNumOfDefinedDomainsCheckACL,
|
||||||
|
conn);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user