From: Volker Lendecke Date: Sat, 13 Oct 2018 08:41:22 +0000 (+0200) Subject: auth3: Avoid an explicit ZERO_STRUCT X-Git-Tag: tdb-1.3.17~1304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4df055bbbb231dc77ca698614fd836ba4c113691;p=thirdparty%2Fsamba.git auth3: Avoid an explicit ZERO_STRUCT Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/auth/server_info.c b/source3/auth/server_info.c index 339cce6c4ec..6d5e9fb72fe 100644 --- a/source3/auth/server_info.c +++ b/source3/auth/server_info.c @@ -503,7 +503,7 @@ NTSTATUS samu_to_SamInfo3(TALLOC_CTX *mem_ctx, struct netr_SamInfo3 *info3; const struct dom_sid *user_sid; const struct dom_sid *group_sid; - struct dom_sid domain_sid; + struct dom_sid domain_sid = {0}; struct dom_sid *group_sids; uint32_t num_group_sids = 0; const char *tmp; @@ -523,8 +523,6 @@ NTSTATUS samu_to_SamInfo3(TALLOC_CTX *mem_ctx, return NT_STATUS_NO_MEMORY; } - ZERO_STRUCT(domain_sid); - status = SamInfo3_handle_sids(pdb_get_username(samu), user_sid, group_sid,