提交 fba503c3 编写于 作者: M Matthias Bolte

esx: Report an error for invalid arguments in esxList(Defined)Domains

上级 9cea2af3
...@@ -964,7 +964,8 @@ esxListDomains(virConnectPtr conn, int *ids, int maxids) ...@@ -964,7 +964,8 @@ esxListDomains(virConnectPtr conn, int *ids, int maxids)
int count = 0; int count = 0;
if (ids == NULL || maxids < 0) { if (ids == NULL || maxids < 0) {
goto failure; ESX_ERROR(VIR_ERR_INVALID_ARG, "%s", _("Invalid argument"));
return -1;
} }
if (maxids == 0) { if (maxids == 0) {
...@@ -2255,7 +2256,8 @@ esxListDefinedDomains(virConnectPtr conn, char **const names, int maxnames) ...@@ -2255,7 +2256,8 @@ esxListDefinedDomains(virConnectPtr conn, char **const names, int maxnames)
int i; int i;
if (names == NULL || maxnames < 0) { if (names == NULL || maxnames < 0) {
goto failure; ESX_ERROR(VIR_ERR_INVALID_ARG, "%s", _("Invalid argument"));
return -1;
} }
if (maxnames == 0) { if (maxnames == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册