summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-08-19 19:57:51 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-08-29 10:18:09 -0400
commit7e7fa5394d042c63dddfe48a85f1d80552e63d81 (patch)
tree8e5d3e0917cc8e1a75c32d0066937d850f0d9ae9
parent473c90800239fc54eaab9d3dc3194582b039d614 (diff)
downloadsssd-7e7fa5394d042c63dddfe48a85f1d80552e63d81.tar.gz
sssd-7e7fa5394d042c63dddfe48a85f1d80552e63d81.tar.bz2
sssd-7e7fa5394d042c63dddfe48a85f1d80552e63d81.zip
Fix moving to next entry in deref code
https://fedorahosted.org/sssd/ticket/973
-rw-r--r--src/providers/ldap/sdap_async_groups.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index 7b9f0cd2..b3f6bb70 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -2492,7 +2492,12 @@ static void sdap_nested_group_process_group(struct tevent_req *subreq)
skip:
if (state->derefctx) {
- state->derefctx->expired_groups_index++;
+ if (state->derefctx->expired_groups_index <
+ state->derefctx->expired_groups_num) {
+ state->derefctx->expired_groups_index++;
+ } else {
+ state->derefctx->missing_dns_index++;
+ }
ret = sdap_nested_group_process_noderef(req);
} else {
state->member_index++;