Fix NULL dereference caused by ACL filtering of domains

Caused by 763973607d.
This commit is contained in:
Jiri Denemark 2013-07-04 16:55:53 +02:00
parent fe89fd3b40
commit db0a18a165
2 changed files with 6 additions and 3 deletions

View File

@ -3221,7 +3221,8 @@ libxlConnectNumOfDefinedDomains(virConnectPtr conn)
libxlDriverLock(driver);
n = virDomainObjListNumOfDomains(driver->domains, false,
virConnectNumOfDefinedDomainsCheckACL, NULL);
virConnectNumOfDefinedDomainsCheckACL,
conn);
libxlDriverUnlock(driver);
return n;

View File

@ -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;