diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-02-17 15:27:20 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2004-02-17 15:27:20 +0000 |
commit | f7e06fa12b4102a085c4c499dad35daaa61bbc3a (patch) | |
tree | 0255e2436fcf1b1459f670af5183a1ed404894ff /source3/utils/net_rpc.c | |
parent | c3dc9f8f5a81146d753a50c022df273e5eca5de5 (diff) | |
download | samba-f7e06fa12b4102a085c4c499dad35daaa61bbc3a.tar.gz samba-f7e06fa12b4102a085c4c499dad35daaa61bbc3a.tar.bz2 samba-f7e06fa12b4102a085c4c499dad35daaa61bbc3a.zip |
Don't try to show entries that could not be listed.
Volker
(This used to be commit 5fb9028942e2f16b153f42911e837008824dcecc)
Diffstat (limited to 'source3/utils/net_rpc.c')
-rw-r--r-- | source3/utils/net_rpc.c | 9 |
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; |