From: Volker Lendecke Date: Sat, 9 Jan 2021 21:51:38 +0000 (+0100) Subject: auth4: Use global_sid_System X-Git-Tag: samba-4.14.0rc1~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b73ffb69dd1c786f4a64c4c07689a2d87952e89;p=thirdparty%2Fsamba.git auth4: Use global_sid_System dom_sid_dup() is much simpler than dom_sid_parse_talloc() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source4/auth/system_session.c b/source4/auth/system_session.c index e9cff3d55d6..89316bafd16 100644 --- a/source4/auth/system_session.c +++ b/source4/auth/system_session.c @@ -121,7 +121,7 @@ NTSTATUS auth_system_user_info_dc(TALLOC_CTX *mem_ctx, const char *netbios_name, /* This returns a pointer to a struct dom_sid, which is the * same as a 1 element list of struct dom_sid */ user_info_dc->num_sids = 1; - user_info_dc->sids = dom_sid_parse_talloc(user_info_dc, SID_NT_SYSTEM); + user_info_dc->sids = dom_sid_dup(user_info_dc, &global_sid_System); NT_STATUS_HAVE_NO_MEMORY(user_info_dc->sids); /* annoying, but the Anonymous really does have a session key,