diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-11-07 14:46:07 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-11-08 12:51:08 -0500 |
commit | 4cc8afd38cd948996accc12a9abd1ebc132ad68d (patch) | |
tree | 1e661dff583e46bb2d0e75537f7bcca15b064c83 /src | |
parent | 72c3fe563ad7a59b65ae7fa757fc602fe26164c2 (diff) | |
download | sssd-4cc8afd38cd948996accc12a9abd1ebc132ad68d.tar.gz sssd-4cc8afd38cd948996accc12a9abd1ebc132ad68d.tar.bz2 sssd-4cc8afd38cd948996accc12a9abd1ebc132ad68d.zip |
LDAP: Remove redundant groups from the lookup list
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap_async_groups.c | 23 |
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 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]) { |