summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-11-07 14:46:07 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-11-08 12:51:08 -0500
commit4cc8afd38cd948996accc12a9abd1ebc132ad68d (patch)
tree1e661dff583e46bb2d0e75537f7bcca15b064c83
parent72c3fe563ad7a59b65ae7fa757fc602fe26164c2 (diff)
downloadsssd-4cc8afd38cd948996accc12a9abd1ebc132ad68d.tar.gz
sssd-4cc8afd38cd948996accc12a9abd1ebc132ad68d.tar.xz
sssd-4cc8afd38cd948996accc12a9abd1ebc132ad68d.zip
LDAP: Remove redundant groups from the lookup list
-rw-r--r--src/providers/ldap/sdap_async_groups.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index f50acdd99..8940c3348 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]) {