summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-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)) {