summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-10-05 12:12:39 +0200
committerJeremy Allison <jra@samba.org>2018-10-08 22:17:11 +0200
commit2329518f32d3c772ddd8d6a27c62b18ff4de221a (patch)
tree0b12212e933145594ace56b8e6112c13e6901d2f /source3/auth
parente7d3678ddb5916416193d553f3cc562627e7d8ab (diff)
downloadsamba-2329518f32d3c772ddd8d6a27c62b18ff4de221a.tar.gz
pdb: Use "sid_compose" where appropriate
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/token_util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index f5b0e694433..c95d54db671 100644
--- a/source3/auth/token_util.c
+++ b/source3/auth/token_util.c
@@ -220,8 +220,7 @@ static NTSTATUS add_builtin_guests(struct security_token *token,
/*
* First check the local GUEST account.
*/
- sid_copy(&tmp_sid, get_global_sam_sid());
- sid_append_rid(&tmp_sid, DOMAIN_RID_GUEST);
+ sid_compose(&tmp_sid, get_global_sam_sid(), DOMAIN_RID_GUEST);
if (nt_token_check_sid(&tmp_sid, token)) {
status = add_sid_to_array_unique(token,
@@ -237,8 +236,7 @@ static NTSTATUS add_builtin_guests(struct security_token *token,
/*
* First check the local GUESTS group.
*/
- sid_copy(&tmp_sid, get_global_sam_sid());
- sid_append_rid(&tmp_sid, DOMAIN_RID_GUESTS);
+ sid_compose(&tmp_sid, get_global_sam_sid(), DOMAIN_RID_GUESTS);
if (nt_token_check_sid(&tmp_sid, token)) {
status = add_sid_to_array_unique(token,