summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-01-16 22:15:35 +0000
committerGerald Carter <jerry@samba.org>2004-01-16 22:15:35 +0000
commit0cf45c96b45b2830ba2d86801c8ecb45d507b274 (patch)
tree12f93d3484ec373f0fa22a24ab114cbdf8f7aea1 /source3/rpcclient
parenta4258016d004a6ea87e016d1ee8dff0c08388296 (diff)
downloadsamba-0cf45c96b45b2830ba2d86801c8ecb45d507b274.tar.gz
samba-0cf45c96b45b2830ba2d86801c8ecb45d507b274.tar.bz2
samba-0cf45c96b45b2830ba2d86801c8ecb45d507b274.zip
fix another bug caused by cli_lsa_query_info_policy() changes
(This used to be commit faec928564529c7ffb2653943be9cafbfb9e4688)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/rpcclient.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index f6dfd9bffa..bac11f7435 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -124,9 +124,10 @@ static void fetch_machine_sid(struct cli_state *cli)
POLICY_HND pol;
NTSTATUS result = NT_STATUS_OK;
uint32 info_class = 5;
- fstring domain_name;
+ char *domain_name = NULL;
static BOOL got_domain_sid;
TALLOC_CTX *mem_ctx;
+ DOM_SID *dom_sid = NULL;
if (got_domain_sid) return;
@@ -150,12 +151,13 @@ static void fetch_machine_sid(struct cli_state *cli)
}
result = cli_lsa_query_info_policy(cli, mem_ctx, &pol, info_class,
- domain_name, &domain_sid);
+ &domain_name, &dom_sid);
if (!NT_STATUS_IS_OK(result)) {
goto error;
}
got_domain_sid = True;
+ sid_copy( &domain_sid, dom_sid );
cli_lsa_close(cli, mem_ctx, &pol);
cli_nt_session_close(cli);