From fc1757369fe73eb2bdd0336c758cdae5a0e96974 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 9 Jan 2010 19:01:35 +0100 Subject: s3: Slightly simplify winbindd_store_creds --- source3/winbindd/winbindd_creds.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source3/winbindd/winbindd_creds.c') 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) { -- cgit