summaryrefslogtreecommitdiff
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-06-06 08:34:27 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-06-12 21:28:06 -0400
commitb78b13ea569fc7fb4ca2c19c39d7cf59e7688f1d (patch)
tree05c7f3b3cd2ecd90b4372bbe3007bb0fdfda6d50 /src/providers/ldap
parent28761338a0f411452c96e40007acf34b289c983f (diff)
downloadsssd-b78b13ea569fc7fb4ca2c19c39d7cf59e7688f1d.tar.gz
sssd-b78b13ea569fc7fb4ca2c19c39d7cf59e7688f1d.tar.bz2
sssd-b78b13ea569fc7fb4ca2c19c39d7cf59e7688f1d.zip
LDAP: Remove redundant check
The same block appeared earlier in the function and neither variable could have changed values since.
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap_async_groups.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index 2a079228..70e656bd 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -1409,17 +1409,6 @@ static void sdap_get_groups_process(struct tevent_req *subreq)
state->groups[state->count] = NULL;
}
- if (!state->enumeration && count > 1) {
- DEBUG(SSSDBG_MINOR_FAILURE,
- ("Individual group search returned multiple results\n"));
- tevent_req_error(req, EINVAL);
- return;
- }
-
- if (state->enumeration || count == 0) {
- next_base = true;
- }
-
if (next_base) {
state->base_iter++;
if (state->search_bases[state->base_iter]) {