From d0b39324471e5226613a86aad313557cd4a89a9a Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 3 Dec 2010 22:47:21 +0100 Subject: s4:lsa RPC server - always initialise "info" structures This should help to fix bug #7769 --- source4/rpc_server/lsa/dcesrv_lsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index c1986b4ee7..8a5edb4042 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -391,7 +391,7 @@ static WERROR dcesrv_dssetup_DsRoleGetPrimaryDomainInformation(struct dcesrv_cal { union dssetup_DsRoleInfo *info; - info = talloc(mem_ctx, union dssetup_DsRoleInfo); + info = talloc_zero(mem_ctx, union dssetup_DsRoleInfo); W_ERROR_HAVE_NO_MEMORY(info); switch (r->in.level) { @@ -3677,7 +3677,7 @@ static NTSTATUS dcesrv_lsa_QueryDomainInformationPolicy(struct dcesrv_call_state { union lsa_DomainInformationPolicy *info; - info = talloc(r->out.info, union lsa_DomainInformationPolicy); + info = talloc_zero(r->out.info, union lsa_DomainInformationPolicy); if (!info) { return NT_STATUS_NO_MEMORY; } -- cgit