s3: Replace most calls to sid_append_rid() by sid_compose()
[nivanova/samba-autobuild/.git] / source3 / winbindd / winbindd_cache.c
index 68972dd18d4ae5790e849f50fb61702f472dba7c..b7b5e6d7edab1e1691331a8bc5b2a405977b3e51 100644 (file)
@@ -2986,8 +2986,7 @@ void wcache_invalidate_samlogon(struct winbindd_domain *domain,
                 return;
         }
 
-       sid_copy(&sid, info3->base.domain_sid);
-       sid_append_rid(&sid, info3->base.rid);
+       sid_compose(&sid, info3->base.domain_sid, info3->base.rid);
 
        /* Clear U/SID cache entry */
        fstr_sprintf(key_str, "U/%s", sid_to_fstring(sid_string, &sid));