summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-10-20 15:42:09 +0000
committerVolker Lendecke <vlendec@samba.org>2003-10-20 15:42:09 +0000
commitd6aa4b38c86be4778b29552255252af02f542411 (patch)
tree8631c206525b6094b36c254049a826a6be7a6d86 /source3
parent611b1987434579a843bc7b64c2fa04b60115cbbc (diff)
downloadsamba-d6aa4b38c86be4778b29552255252af02f542411.tar.gz
samba-d6aa4b38c86be4778b29552255252af02f542411.tar.bz2
samba-d6aa4b38c86be4778b29552255252af02f542411.zip
It's a perfectly valid condition to have zero alias members.
Volker (This used to be commit ccdcd88732c99497fc563379df7837c35eba72be)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_samr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c
index f985ee9979..e5e67f39dc 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;