By using (struct auth_SidAttr) {} we don't leave
uninitialized memory if struct auth_SidAttr changes.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
return NT_STATUS_NO_MEMORY;
}
- user_info_dc->sids->sid = global_sid_System;
- user_info_dc->sids->attrs = SE_GROUP_DEFAULT_FLAGS;
+ user_info_dc->sids[0] = (struct auth_SidAttr) {
+ .sid = global_sid_System,
+ .attrs = SE_GROUP_DEFAULT_FLAGS,
+ };
/* annoying, but the Anonymous really does have a session key,
and it is all zeros! */