summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-21 19:02:57 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-21 19:02:57 +0000
commit45b794bdde0cb906216425c8fc2af8610aa8ad3c (patch)
tree6dd018021c24dee66dc57b23d3c876acc658293c /source3/rpc_client
parent52fed795e156b9db8a0f29d9087042ccdec093f5 (diff)
downloadsamba-45b794bdde0cb906216425c8fc2af8610aa8ad3c.tar.gz
samba-45b794bdde0cb906216425c8fc2af8610aa8ad3c.tar.bz2
samba-45b794bdde0cb906216425c8fc2af8610aa8ad3c.zip
the dynamic memory alloc blood-fest goes on...
(This used to be commit 134b20e2a7b5ddfa4cc9bf100de5025c7b98f594)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_samr.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c
index c19a01d213..8e051d4f98 100644
--- a/source3/rpc_client/cli_samr.c
+++ b/source3/rpc_client/cli_samr.c
@@ -215,7 +215,7 @@ do a SAMR query group members
BOOL get_samr_query_groupmem(struct cli_state *cli, uint16 fnum,
POLICY_HND *pol_open_domain,
uint32 group_rid, uint32 *num_mem,
- uint32 *rid, uint32 *attr)
+ uint32 **rid, uint32 **attr)
{
POLICY_HND pol_open_group;
BOOL ret = True;
@@ -2142,7 +2142,7 @@ do a SAMR Query Group Members
****************************************************************************/
BOOL samr_query_groupmem(struct cli_state *cli, uint16 fnum,
POLICY_HND *group_pol,
- uint32 *num_mem, uint32 *rid, uint32 *attr)
+ uint32 *num_mem, uint32 **rid, uint32 **attr)
{
prs_struct data;
prs_struct rdata;
@@ -2171,11 +2171,12 @@ BOOL samr_query_groupmem(struct cli_state *cli, uint16 fnum,
SAMR_R_QUERY_GROUPMEM r_o;
BOOL p;
- /* get user info */
- r_o.rid = rid;
- r_o.attr = attr;
+ r_o.rid = NULL;
+ r_o.attr = NULL;
samr_io_r_query_groupmem("", &r_o, &rdata, 0);
+ *rid = r_o.rid ;
+ *attr = r_o.attr;
p = rdata.offset != 0;
if (p && r_o.status != 0)