提交 db0a18a1 编写于 作者: J Jiri Denemark

Fix NULL dereference caused by ACL filtering of domains

Caused by 76397360.
上级 fe89fd3b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册