summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/providers/ldap/sdap_async_accounts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c
index 96104dd6..003cf037 100644
--- a/src/providers/ldap/sdap_async_accounts.c
+++ b/src/providers/ldap/sdap_async_accounts.c
@@ -3317,7 +3317,7 @@ static errno_t sdap_nested_group_process_step(struct tevent_req *req)
if (ret != EOK && ret != ENOENT) {
ret = EIO;
goto error;
- } else if (ret == ENOENT || count == 9) {
+ } else if (ret == ENOENT || count == 0) {
if (ret == EOK) talloc_zfree(msgs);
/* It wasn't found in the groups either