summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-08 22:55:52 +0200
committerGünther Deschner <gd@samba.org>2008-04-08 22:55:52 +0200
commit81579895a64129635dcbefa8d4b672fa6470fc42 (patch)
treead98a5a6f302d4e883c344ca9837894e8ea221ab /source3/utils
parentceec50446ba7ceb68efe9cd2496e2730e8e98d17 (diff)
downloadsamba-81579895a64129635dcbefa8d4b672fa6470fc42.tar.gz
samba-81579895a64129635dcbefa8d4b672fa6470fc42.tar.bz2
samba-81579895a64129635dcbefa8d4b672fa6470fc42.zip
Fix lsa_TrustedDomainInfo callers.
Guenther (This used to be commit e0eae3901750c7b76560bbab9a86f24a64d42c8b)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 5abae7f005..f3f187bf0b 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -6128,7 +6128,7 @@ static NTSTATUS vampire_trusted_domain(struct rpc_pipe_client *pipe_hnd,
const char *trusted_dom_name)
{
NTSTATUS nt_status;
- union lsa_TrustedDomainInfo info;
+ union lsa_TrustedDomainInfo *info = NULL;
char *cleartextpwd = NULL;
DATA_BLOB data;
@@ -6143,12 +6143,8 @@ static NTSTATUS vampire_trusted_domain(struct rpc_pipe_client *pipe_hnd,
goto done;
}
- data = data_blob(NULL, info.password.password->length);
-
- memcpy(data.data,
- info.password.password->data,
- info.password.password->length);
- data.length = info.password.password->length;
+ data = data_blob(info->password.password->data,
+ info->password.password->length);
cleartextpwd = decrypt_trustdom_secret(pipe_hnd->cli->pwd.password,
&data);