summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_creds.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-09 19:01:35 +0100
committerVolker Lendecke <vl@samba.org>2010-01-09 20:37:39 +0100
commitfc1757369fe73eb2bdd0336c758cdae5a0e96974 (patch)
tree7b3f07c0f790c8d8678621dbafa9d23595fa4f7c /source3/winbindd/winbindd_creds.c
parent43c841b6bd92e987109df81b6b8a2b85f21b0181 (diff)
downloadsamba-fc1757369fe73eb2bdd0336c758cdae5a0e96974.tar.gz
samba-fc1757369fe73eb2bdd0336c758cdae5a0e96974.tar.bz2
samba-fc1757369fe73eb2bdd0336c758cdae5a0e96974.zip
s3: Slightly simplify winbindd_store_creds
Diffstat (limited to 'source3/winbindd/winbindd_creds.c')
-rw-r--r--source3/winbindd/winbindd_creds.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/winbindd/winbindd_creds.c b/source3/winbindd/winbindd_creds.c
index 98a16ee937..3874b6e5bd 100644
--- a/source3/winbindd/winbindd_creds.c
+++ b/source3/winbindd/winbindd_creds.c
@@ -66,10 +66,8 @@ NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
if (info3 != NULL) {
- DOM_SID sid;
- sid_copy(&sid, info3->base.domain_sid);
- sid_append_rid(&sid, info3->base.rid);
- sid_copy(&cred_sid, &sid);
+ sid_compose(&cred_sid, info3->base.domain_sid,
+ info3->base.rid);
info3->base.user_flags |= NETLOGON_CACHED_ACCOUNT;
} else if (user_sid != NULL) {