mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +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);
|
||||
n = virDomainObjListNumOfDomains(driver->domains, false,
|
||||
virConnectNumOfDefinedDomainsCheckACL, NULL);
|
||||
virConnectNumOfDefinedDomainsCheckACL,
|
||||
conn);
|
||||
libxlDriverUnlock(driver);
|
||||
|
||||
return n;
|
||||
|
@ -5887,7 +5887,8 @@ static int qemuConnectListDefinedDomains(virConnectPtr conn,
|
||||
goto cleanup;
|
||||
|
||||
ret = virDomainObjListGetInactiveNames(driver->domains, names, nnames,
|
||||
virConnectListDefinedDomainsCheckACL, NULL);
|
||||
virConnectListDefinedDomainsCheckACL,
|
||||
conn);
|
||||
|
||||
cleanup:
|
||||
return ret;
|
||||
@ -5901,7 +5902,8 @@ static int qemuConnectNumOfDefinedDomains(virConnectPtr conn) {
|
||||
goto cleanup;
|
||||
|
||||
ret = virDomainObjListNumOfDomains(driver->domains, false,
|
||||
virConnectNumOfDefinedDomainsCheckACL, NULL);
|
||||
virConnectNumOfDefinedDomainsCheckACL,
|
||||
conn);
|
||||
|
||||
cleanup:
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user