diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-12-03 22:47:21 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-12-03 22:47:21 +0100 |
commit | d0b39324471e5226613a86aad313557cd4a89a9a (patch) | |
tree | 721ba9c4ea7894588b47e856afa0f8b7c1e03dca /source4 | |
parent | aebc90f97417f71ffd1aacd339b34cdee096c15e (diff) | |
download | samba-d0b39324471e5226613a86aad313557cd4a89a9a.tar.gz samba-d0b39324471e5226613a86aad313557cd4a89a9a.tar.bz2 samba-d0b39324471e5226613a86aad313557cd4a89a9a.zip |
s4:lsa RPC server - always initialise "info" structures
This should help to fix bug #7769
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |