summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-01-16 22:16:24 +0000
committerGerald Carter <jerry@samba.org>2004-01-16 22:16:24 +0000
commit65ed5b5f6e52780706e1fcc30a39741a43aa3342 (patch)
treea9aa1697ba9919f73320d4b0342a432e085e70d0
parent8001e0e84c174cd4bc184d9daaa49c03fef085c5 (diff)
downloadsamba-65ed5b5f6e52780706e1fcc30a39741a43aa3342.tar.gz
samba-65ed5b5f6e52780706e1fcc30a39741a43aa3342.tar.bz2
samba-65ed5b5f6e52780706e1fcc30a39741a43aa3342.zip
fix another bug caused by cli_lsa_query_info_policy() changes
(This used to be commit f9664523282f3e92ff4d7641aded46fdf794aa5b)
-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 0b60dea2fa..8372b75b4b 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);