summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-07-15 11:18:00 +0200
committerGünther Deschner <gd@samba.org>2011-07-15 17:56:39 +0200
commitee1f25dc2ae715fa76417419010131861f95d8bf (patch)
tree1af69615f654032817daa68748c6fc37c52b2743 /source4
parent3af3e4843fbcfcc35594e0c681f4713ebb5b76e4 (diff)
downloadsamba-ee1f25dc2ae715fa76417419010131861f95d8bf.tar.gz
samba-ee1f25dc2ae715fa76417419010131861f95d8bf.tar.bz2
samba-ee1f25dc2ae715fa76417419010131861f95d8bf.zip
lsa: lsa_CreateTrustedDomainEx takes lsa_TrustDomainInfoAuthInfo, not
lsa_TrustDomainInfoAuthInfoInternal. Guenther
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index c1d7389ac6..c690894f85 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -1139,7 +1139,12 @@ static NTSTATUS dcesrv_lsa_CreateTrustedDomainEx(struct dcesrv_call_state *dce_c
r2.in.policy_handle = r->in.policy_handle;
r2.in.info = r->in.info;
- r2.in.auth_info_internal = r->in.auth_info;
+
+ r2.in.auth_info_internal = talloc_zero(mem_ctx, struct lsa_TrustDomainInfoAuthInfoInternal);
+ if (!r2.in.auth_info_internal) {
+ return NT_STATUS_NO_MEMORY;
+ }
+
r2.out.trustdom_handle = r->out.trustdom_handle;
return dcesrv_lsa_CreateTrustedDomain_base(dce_call, mem_ctx, &r2, NDR_LSA_CREATETRUSTEDDOMAINEX);
}