r1887: Fix deadlock loop in winbind's required_membership_sid-verification.
authorGünther Deschner <gd@samba.org>
Wed, 18 Aug 2004 16:15:21 +0000 (16:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:23 +0000 (10:52 -0500)
Guenther

source/nsswitch/winbindd_pam.c

index 81d4e69ccd6b819175e6fd60d3fa6e7c966b2bb6..03947de8750e6da93193e6ed5574edb6ac58801d 100644 (file)
@@ -123,7 +123,7 @@ static NTSTATUS check_info3_in_group(TALLOC_CTX *mem_ctx,
            http://www.microsoft.com/windows2000/techinfo/administration/security/sidfilter.asp
          */
 
-       for (i = 0; i < info3->num_other_sids; j++) {
+       for (i = 0; i < info3->num_other_sids; i++) {
                sid_copy(&all_sids[info3->num_groups2 + i + 2],
                         &info3->other_sids[j].sid);
                j++;