summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-12-13 11:53:37 +0000
committerTim Potter <tpot@samba.org>2000-12-13 11:53:37 +0000
commite43671cd57dff9a92d5a196e89a552712a30abee (patch)
tree0db167d4471ee332702dd254f78d69e65f118fa9 /source3/rpc_client
parent0835c7091c62eb0fa804f417dc893ba311b7f126 (diff)
downloadsamba-e43671cd57dff9a92d5a196e89a552712a30abee.tar.gz
samba-e43671cd57dff9a92d5a196e89a552712a30abee.tar.bz2
samba-e43671cd57dff9a92d5a196e89a552712a30abee.zip
Wrong length for unistr2 in init_q_lookup_names()
Removed some more static arrays and replaced with tallocated memory blocks. (This used to be commit 1db0f31ae00bf9c91eb7d02c96bf766d04c7bdef)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_lsarpc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c
index 5ce90ba1b7..a3b0a516b0 100644
--- a/source3/rpc_client/cli_lsarpc.c
+++ b/source3/rpc_client/cli_lsarpc.c
@@ -448,7 +448,7 @@ uint32 lsa_lookup_sids(POLICY_HND *hnd, int num_sids, DOM_SID *sids,
/* Store the parameters */
- init_q_lookup_sids(ctx, &q_l, hnd, num_sids, &sids, 1);
+ init_q_lookup_sids(ctx, &q_l, hnd, num_sids, sids, 1);
/* turn parameters into data stream */
if (lsa_io_q_lookup_sids("", &q_l, &buf, 0) &&
@@ -590,7 +590,7 @@ uint32 lsa_lookup_names(POLICY_HND *hnd, int num_names, char **names,
DEBUG(4, ("LSA Lookup NAMEs\n"));
/* store the parameters */
- init_q_lookup_names(&q_l, hnd, num_names, names);
+ init_q_lookup_names(ctx, &q_l, hnd, num_names, names);
/* turn parameters into data stream */
if (lsa_io_q_lookup_names("", &q_l, &buf, 0) &&
@@ -606,7 +606,7 @@ uint32 lsa_lookup_names(POLICY_HND *hnd, int num_names, char **names,
r_l.dom_ref = &ref;
r_l.dom_rid = t_rids;
- lsa_io_r_lookup_names("", &r_l, &rbuf, 0);
+ lsa_io_r_lookup_names(ctx, "", &r_l, &rbuf, 0);
p = rbuf.data_offset != 0;
if (p && r_l.status != 0) {