From e43671cd57dff9a92d5a196e89a552712a30abee Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 13 Dec 2000 11:53:37 +0000 Subject: 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) --- source3/rpc_client/cli_lsarpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/rpc_client') 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) { -- cgit