From 4cc8afd38cd948996accc12a9abd1ebc132ad68d Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 7 Nov 2011 14:46:07 -0500 Subject: LDAP: Remove redundant groups from the lookup list --- src/providers/ldap/sdap_async_groups.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src') diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c index f50acdd9..8940c334 100644 --- a/src/providers/ldap/sdap_async_groups.c +++ b/src/providers/ldap/sdap_async_groups.c @@ -1367,29 +1367,6 @@ static void sdap_get_groups_process(struct tevent_req *subreq) next_base = true; } - /* Add this batch of groups to the list */ - if (count > 0) { - state->groups = - talloc_realloc(state, - state->groups, - struct sysdb_attrs *, - state->count + count + 1); - if (!state->groups) { - tevent_req_error(req, ENOMEM); - return; - } - - /* Copy the new groups into the list - * They're already allocated on 'state' - */ - for (i = 0; i < count; i++) { - state->groups[state->count + i] = groups[i]; - } - - state->count += count; - state->groups[state->count] = NULL; - } - if (next_base) { state->base_iter++; if (state->search_bases[state->base_iter]) { -- cgit