summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-02-17 10:09:12 +0000
committerVolker Lendecke <vlendec@samba.org>2004-02-17 10:09:12 +0000
commit371e8bf7b490c3c9b29bdfd6b2c0d556ad391d95 (patch)
tree578b8101016f21b4d3612d0cb9dcd40639a3df4e /source3
parentc55fbad91087029679e4b57718d6e4e7de12656c (diff)
downloadsamba-371e8bf7b490c3c9b29bdfd6b2c0d556ad391d95.tar.gz
samba-371e8bf7b490c3c9b29bdfd6b2c0d556ad391d95.tar.bz2
samba-371e8bf7b490c3c9b29bdfd6b2c0d556ad391d95.zip
If there are no alias members, don't ask for their sids.
Volker (This used to be commit 9d66043ed71d0c0f787a67b06b93f4f3b489c21c)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index b92d7ec81e..80f02f2ae9 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -1342,6 +1342,10 @@ rpc_list_alias_members(struct cli_state *cli, TALLOC_CTX *mem_ctx,
return result;
}
+ if (num_members == 0) {
+ return NT_STATUS_OK;
+ }
+
cli_nt_session_close(cli);
if (!cli_nt_session_open(cli, PI_LSARPC)) {