]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
auth4: Use global_sid_System
authorVolker Lendecke <vl@samba.org>
Sat, 9 Jan 2021 21:51:38 +0000 (22:51 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 12 Jan 2021 00:10:30 +0000 (00:10 +0000)
dom_sid_dup() is much simpler than dom_sid_parse_talloc()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/auth/system_session.c

index e9cff3d55d6e8466b057ab59d0b381f0047d7459..89316bafd16f5ea47e398e4728cb829f570f2a2a 100644 (file)
@@ -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,