summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_group.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-06-09 10:33:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:21 -0500
commit33c918b11a6f143d4202df64ad76dde29a807f44 (patch)
tree73559da5990788a020c46c3f802fd94aa553f138 /source3/nsswitch/winbindd_group.c
parent088c571df8ae984e761a5975ddbf66a652ad0264 (diff)
downloadsamba-33c918b11a6f143d4202df64ad76dde29a807f44.tar.gz
samba-33c918b11a6f143d4202df64ad76dde29a807f44.tar.bz2
samba-33c918b11a6f143d4202df64ad76dde29a807f44.zip
r16114: Make winbindd's group enumeration (set|get|endgrent) work again (when
enabled). Do not bail out when a group just has 0 members. Jeremy, please check, this has been removed with r13915. Guenther (This used to be commit 3a738a855d335e44e167351e6396bf3fe81a03af)
Diffstat (limited to 'source3/nsswitch/winbindd_group.c')
-rw-r--r--source3/nsswitch/winbindd_group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c
index 7219292724..5caaa7aa3a 100644
--- a/source3/nsswitch/winbindd_group.c
+++ b/source3/nsswitch/winbindd_group.c
@@ -789,7 +789,7 @@ void winbindd_getgrent(struct winbindd_cli_state *state)
/* Append to group membership list */
gr_mem_list = SMB_REALLOC( gr_mem_list, gr_mem_list_len + gr_mem_len);
- if (!gr_mem_list) {
+ if (!gr_mem_list && (group_list[group_list_ndx].num_gr_mem != 0)) {
DEBUG(0, ("out of memory\n"));
gr_mem_list_len = 0;
break;