diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-04-11 14:30:31 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-04-11 14:30:31 +0000 |
commit | dfa990170bb9a665ba48443258e2a87f50baa75c (patch) | |
tree | fd13ab017d665ccd9c954e7c80be1ad2de31e177 /source/nsswitch/winbindd_rpc.c | |
parent | 91a3ccd3e790f980421c1ee93388e19e87026b29 (diff) | |
download | samba-dfa990170bb9a665ba48443258e2a87f50baa75c.tar.gz samba-dfa990170bb9a665ba48443258e2a87f50baa75c.tar.xz samba-dfa990170bb9a665ba48443258e2a87f50baa75c.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.
Diffstat (limited to 'source/nsswitch/winbindd_rpc.c')
-rw-r--r-- | source/nsswitch/winbindd_rpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/nsswitch/winbindd_rpc.c b/source/nsswitch/winbindd_rpc.c index 53c39b2f570..5af42ee041b 100644 --- a/source/nsswitch/winbindd_rpc.c +++ b/source/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); |