1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:rpc_server: Use talloc_zero in dcesrv_lsa_CreateTrustedDomain()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2023-12-21 08:12:22 +01:00 committed by Andrew Bartlett
parent 8b1c0bd718
commit 18af510bd5

View File

@ -1449,7 +1449,7 @@ static NTSTATUS dcesrv_lsa_CreateTrustedDomain(struct dcesrv_call_state *dce_cal
struct lsa_CreateTrustedDomainEx2 r2 = {};
r2.in.policy_handle = r->in.policy_handle;
r2.in.info = talloc(mem_ctx, struct lsa_TrustDomainInfoInfoEx);
r2.in.info = talloc_zero(mem_ctx, struct lsa_TrustDomainInfoInfoEx);
if (!r2.in.info) {
return NT_STATUS_NO_MEMORY;
}