From d6aa4b38c86be4778b29552255252af02f542411 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 20 Oct 2003 15:42:09 +0000 Subject: [PATCH] It's a perfectly valid condition to have zero alias members. Volker (This used to be commit ccdcd88732c99497fc563379df7837c35eba72be) --- source3/rpc_client/cli_samr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c index f985ee9979b..e5e67f39dc9 100644 --- a/source3/rpc_client/cli_samr.c +++ b/source3/rpc_client/cli_samr.c @@ -865,6 +865,12 @@ NTSTATUS cli_samr_query_aliasmem(struct cli_state *cli, TALLOC_CTX *mem_ctx, *num_mem = r.num_sids; + if (*num_mem == 0) { + *sids = NULL; + result = NT_STATUS_OK; + goto done; + } + if (!(*sids = talloc(mem_ctx, sizeof(DOM_SID) * *num_mem))) { result = NT_STATUS_UNSUCCESSFUL; goto done; -- 2.11.4.GIT