summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-09-01 21:28:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:34 -0500
commit0138c085161a0864a9e82164b1572bc201d4f025 (patch)
tree15223d3859f26f95ea926a59ff656a06985f4b65 /source3/nsswitch
parentc5b11b56aa3c54193f7c16356f1a944354c89eb1 (diff)
downloadsamba-0138c085161a0864a9e82164b1572bc201d4f025.tar.gz
samba-0138c085161a0864a9e82164b1572bc201d4f025.tar.bz2
samba-0138c085161a0864a9e82164b1572bc201d4f025.zip
r2177: use the correct counter when copying group rids from the user_info3 struct; patch from Dimitri van der Spek <dwspek@aboveit.nl>
(This used to be commit aa89806deb9d4c9cbd23ccdd41bb98346e395078)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_pam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_pam.c b/source3/nsswitch/winbindd_pam.c
index 08913a35a4..129f876f81 100644
--- a/source3/nsswitch/winbindd_pam.c
+++ b/source3/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++;
}