diff options
author | Gerald Carter <jerry@samba.org> | 2004-09-01 21:29:08 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-09-01 21:29:08 +0000 |
commit | 0fc6ce7e4d44b4e1544ef58e16f0d615579b09ab (patch) | |
tree | 719cc6618d596b15a0bf91f7af9e324e44fa5d36 | |
parent | 78ae4f9378cfc7e884a054088cbd088a2b18a6c8 (diff) | |
download | samba-0fc6ce7e4d44b4e1544ef58e16f0d615579b09ab.tar.gz |
r2178: use the correct counter when copying group rids from the user_info3 struct; patch from Dimitri van der Spek <dwspek@aboveit.nl>
-rw-r--r-- | source/nsswitch/winbindd_pam.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/nsswitch/winbindd_pam.c b/source/nsswitch/winbindd_pam.c index 08913a35a48..129f876f817 100644 --- a/source/nsswitch/winbindd_pam.c +++ b/source/nsswitch/winbindd_pam.c @@ -108,9 +108,9 @@ static NTSTATUS check_info3_in_group(TALLOC_CTX *mem_ctx, sid_copy(&all_sids[j], &(info3->dom_sid.sid)); - if (!sid_append_rid(&all_sids[j], info3->gids[j].g_rid)) { + if (!sid_append_rid(&all_sids[j], info3->gids[i].g_rid)) { DEBUG(3,("could not append additional group rid 0x%x\n", - info3->gids[j].g_rid)); + info3->gids[i].g_rid)); return NT_STATUS_INVALID_PARAMETER; } @@ -125,7 +125,7 @@ static NTSTATUS check_info3_in_group(TALLOC_CTX *mem_ctx, for (i = 0; i < info3->num_other_sids; i++) { sid_copy(&all_sids[info3->num_groups2 + i + 2], - &info3->other_sids[j].sid); + &info3->other_sids[i].sid); j++; } |