From: Matthias Dieter Wallnöfer Date: Fri, 3 Dec 2010 21:47:21 +0000 (+0100) Subject: s4:lsa RPC server - always initialise "info" structures X-Git-Tag: samba-4.0.0alpha14~492 X-Git-Url: http://git.samba.org/samba.git/?p=mdw%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=d0b39324471e5226613a86aad313557cd4a89a9a s4:lsa RPC server - always initialise "info" structures This should help to fix bug #7769 --- diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index c1986b4ee7a..8a5edb40421 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; }