diff options
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index 7cc6e24d70..246e74dc35 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -379,7 +379,7 @@ static NTSTATUS cmd_samr_query_group(struct cli_state *cli, NTSTATUS result = NT_STATUS_UNSUCCESSFUL; uint32 info_level = 1; uint32 access_mask = MAXIMUM_ALLOWED_ACCESS; - GROUP_INFO_CTR group_ctr; + GROUP_INFO_CTR *group_ctr; fstring server; uint32 group_rid; @@ -419,15 +419,13 @@ static NTSTATUS cmd_samr_query_group(struct cli_state *cli, if (!NT_STATUS_IS_OK(result)) goto done; - ZERO_STRUCT(group_ctr); - result = cli_samr_query_groupinfo(cli, mem_ctx, &group_pol, info_level, &group_ctr); if (!NT_STATUS_IS_OK(result)) { goto done; } - display_group_info_ctr(&group_ctr); + display_group_info_ctr(group_ctr); done: return result; |