summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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]) {