summaryrefslogtreecommitdiff
path: root/source3/groupdb/builtinunix.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/groupdb/builtinunix.c')
-rw-r--r--source3/groupdb/builtinunix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/groupdb/builtinunix.c b/source3/groupdb/builtinunix.c
index bb45f2983f..9f00582592 100644
--- a/source3/groupdb/builtinunix.c
+++ b/source3/groupdb/builtinunix.c
@@ -226,7 +226,6 @@ static LOCAL_GRP *getbltunixpwent(void *vp, LOCAL_GRP_MEMBER **mem, int *num_mem
}
fstrcpy(gp_buf.name, gmep.nt_name);
- grps->grp_idx++;
break;
}
@@ -252,6 +251,7 @@ static LOCAL_GRP *getbltunixpwent(void *vp, LOCAL_GRP_MEMBER **mem, int *num_mem
DEBUG(10,("line: '%s'\n", linebuf));
}
+ grps->grp_idx++; /* advance so next enum gets next entry */
return &gp_buf;
}