summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-10-14 01:57:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:28 -0500
commit94d565b36bf733093195ddec013f3b4e0514945e (patch)
treeb9fcd69f48d5f7a855d7b03c4d6b83f0eb7fbdb5 /source3
parent25f0f624f83ff3ac1eae6736b6f92b97b357291f (diff)
downloadsamba-94d565b36bf733093195ddec013f3b4e0514945e.tar.gz
samba-94d565b36bf733093195ddec013f3b4e0514945e.tar.bz2
samba-94d565b36bf733093195ddec013f3b4e0514945e.zip
r19272: Ensure we return 1 member in the optimized case.
(This used to be commit cc6cdabf19e9a610be064e26fdf3a9d2a3c76c2c)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_group.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c
index 79d8e2970e..c838db923c 100644
--- a/source3/nsswitch/winbindd_group.c
+++ b/source3/nsswitch/winbindd_group.c
@@ -205,6 +205,7 @@ static BOOL fill_grent_mem(struct winbindd_domain *domain,
*gr_mem = buf;
*gr_mem_len = buf_len;
+ *num_gr_mem = 1;
DEBUG(10, ("num_mem = %u, len = %u, mem = %s\n", (unsigned int)*num_gr_mem,
(unsigned int)buf_len, *num_gr_mem ? buf : "NULL"));