]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbindd: fix invalid sid copy (hit when enumerating sibling domains).
authorGünther Deschner <gd@samba.org>
Thu, 28 Aug 2008 10:29:24 +0000 (12:29 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 28 Aug 2008 10:29:52 +0000 (12:29 +0200)
Guenther

source/winbindd/winbindd_ads.c

index 097fa3907d91d05ac384aa447967f190389fc198..53ea3e148c16baff9c5477496bd36da092445277 100644 (file)
@@ -1254,7 +1254,7 @@ static NTSTATUS trusted_domains(struct winbindd_domain *domain,
                        if (trusts.array[i].sid) {
                                sid_copy( &d.sid, trusts.array[i].sid);
                        } else {
-                               sid_copy(&(*dom_sids)[ret_count], &global_sid_NULL);
+                               sid_copy(&d.sid, &global_sid_NULL);
                        }
 
                        if ( domain->primary ) {