summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_rpc.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-04-11 14:30:31 +0000
committerAndrew Tridgell <tridge@samba.org>2002-04-11 14:30:31 +0000
commit560a51f46bab19b23aab72ca7e17017443346058 (patch)
treeea1a31fc92c92c9294e7a705a93cbdfbb2c4ce0d /source3/nsswitch/winbindd_rpc.c
parent5c0e682c4a2e8bb91911064c51bf4c690555cb33 (diff)
downloadsamba-560a51f46bab19b23aab72ca7e17017443346058.tar.gz
samba-560a51f46bab19b23aab72ca7e17017443346058.tar.bz2
samba-560a51f46bab19b23aab72ca7e17017443346058.zip
possibly fix the 15000 user problem
I think its caused by a rpc operation failing and us giving invalid data back to the cache layer. Using talloc_zero() should solve this. (This used to be commit dfa990170bb9a665ba48443258e2a87f50baa75c)
Diffstat (limited to 'source3/nsswitch/winbindd_rpc.c')
-rw-r--r--source3/nsswitch/winbindd_rpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c
index 53c39b2f57..5af42ee041 100644
--- a/source3/nsswitch/winbindd_rpc.c
+++ b/source3/nsswitch/winbindd_rpc.c
@@ -447,8 +447,8 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain,
#define MAX_LOOKUP_RIDS 900
- *names = talloc(mem_ctx, *num_names * sizeof(char *));
- *name_types = talloc(mem_ctx, *num_names * sizeof(uint32));
+ *names = talloc_zero(mem_ctx, *num_names * sizeof(char *));
+ *name_types = talloc_zero(mem_ctx, *num_names * sizeof(uint32));
for (i = 0; i < *num_names; i += MAX_LOOKUP_RIDS) {
int num_lookup_rids = MIN(*num_names - i, MAX_LOOKUP_RIDS);