summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-02-17 15:24:28 +0000
committerVolker Lendecke <vlendec@samba.org>2004-02-17 15:24:28 +0000
commit96a5c5e38c1e6bd26a73adadeb42dbb488a6c75d (patch)
tree095c3998c70761988fd30e317565935cbab4156e /source3/utils
parent07892673ff5962ef1bbffbc72bd1588b83e6f777 (diff)
downloadsamba-96a5c5e38c1e6bd26a73adadeb42dbb488a6c75d.tar.gz
samba-96a5c5e38c1e6bd26a73adadeb42dbb488a6c75d.tar.bz2
samba-96a5c5e38c1e6bd26a73adadeb42dbb488a6c75d.zip
Don't try to show groups that could not be listed.
Volker (This used to be commit d713e76a24583acaffa0be67838e7629b980ff29)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 80f02f2ae9..de6c8be900 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -1131,6 +1131,9 @@ rpc_group_list_internals(const DOM_SID *domain_sid, const char *domain_name,
result = cli_samr_query_dispinfo(cli, mem_ctx, &domain_pol,
&start_idx, 3, &num_entries,
max_entries, max_size, &ctr);
+
+ if (!NT_STATUS_IS_OK(result))
+ break;
for (i = 0; i < num_entries; i++) {
@@ -1155,6 +1158,9 @@ rpc_group_list_internals(const DOM_SID *domain_sid, const char *domain_name,
&start_idx, max_entries,
&groups, &num_entries);
+ if (!NT_STATUS_IS_OK(result))
+ break;
+
for (i = 0; i < num_entries; i++) {
char *description = NULL;
@@ -1206,6 +1212,9 @@ rpc_group_list_internals(const DOM_SID *domain_sid, const char *domain_name,
&start_idx, max_entries,
&groups, &num_entries);
+ if (!NT_STATUS_IS_OK(result))
+ break;
+
for (i = 0; i < num_entries; i++) {
char *description = NULL;