summaryrefslogtreecommitdiffstats
path: root/source/rpc_client
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2002-12-08 11:56:45 +0000
committerSimo Sorce <idra@samba.org>2002-12-08 11:56:45 +0000
commit8877ff2482bfa880614a9f40eed448d60216419d (patch)
treecf4ab79b82cf570c9d15cc915c98912965f7ab77 /source/rpc_client
parent92697adcd72434bcc38b98d618f013746a4db2ed (diff)
downloadsamba-8877ff2482bfa880614a9f40eed448d60216419d.tar.gz
samba-8877ff2482bfa880614a9f40eed448d60216419d.tar.xz
samba-8877ff2482bfa880614a9f40eed448d60216419d.zip
make querygroup in rpcclient working, same fix as per 2.2 tree
Diffstat (limited to 'source/rpc_client')
-rw-r--r--source/rpc_client/cli_samr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/rpc_client/cli_samr.c b/source/rpc_client/cli_samr.c
index 7863d32419b..d101b8fe218 100644
--- a/source/rpc_client/cli_samr.c
+++ b/source/rpc_client/cli_samr.c
@@ -358,7 +358,7 @@ NTSTATUS cli_samr_query_userinfo(struct cli_state *cli, TALLOC_CTX *mem_ctx,
NTSTATUS cli_samr_query_groupinfo(struct cli_state *cli, TALLOC_CTX *mem_ctx,
POLICY_HND *group_pol, uint32 info_level,
- GROUP_INFO_CTR *ctr)
+ GROUP_INFO_CTR **ctr)
{
prs_struct qbuf, rbuf;
SAMR_Q_QUERY_GROUPINFO q;
@@ -383,11 +383,11 @@ NTSTATUS cli_samr_query_groupinfo(struct cli_state *cli, TALLOC_CTX *mem_ctx,
/* Unmarshall response */
- r.ctr = ctr;
-
if (!samr_io_r_query_groupinfo("", &r, &rbuf, 0))
goto done;
+ *ctr = r.ctr;
+
/* Return output parameters */
result = r.status;