summaryrefslogtreecommitdiff
path: root/source3/groupdb/groupunix.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/groupdb/groupunix.c')
-rw-r--r--source3/groupdb/groupunix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/groupdb/groupunix.c b/source3/groupdb/groupunix.c
index a8f40a313a..1aeae1ca19 100644
--- a/source3/groupdb/groupunix.c
+++ b/source3/groupdb/groupunix.c
@@ -227,7 +227,6 @@ static DOMAIN_GRP *getgrpunixpwent(void *vp, DOMAIN_GRP_MEMBER **mem, int *num_m
}
fstrcpy(gp_buf.name, gmep.nt_name);
- grps->grp_idx++;
break;
}
@@ -253,6 +252,7 @@ static DOMAIN_GRP *getgrpunixpwent(void *vp, DOMAIN_GRP_MEMBER **mem, int *num_m
DEBUG(10,("line: '%s'\n", linebuf));
}
+ grps->grp_idx++; /* advance so next enum gets next entry */
return &gp_buf;
}