]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
auth4: Use global_sid_Anonymous
authorVolker Lendecke <vl@samba.org>
Sat, 9 Jan 2021 21:53:29 +0000 (22:53 +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 89316bafd16f5ea47e398e4728cb829f570f2a2a..85b8f1c4edbc2cff8bfebb7013d98b427693a601 100644 (file)
@@ -362,7 +362,7 @@ _PUBLIC_ NTSTATUS auth_anonymous_user_info_dc(TALLOC_CTX *mem_ctx,
        /* 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_ANONYMOUS);
+       user_info_dc->sids = dom_sid_dup(user_info_dc, &global_sid_Anonymous);
        NT_STATUS_HAVE_NO_MEMORY(user_info_dc->sids);
 
        /* annoying, but the Anonymous really does have a session key... */