Skip to content

Commit

Permalink
Loop over COUNT entries. Maybe addresses #945
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 1, 2015
1 parent 191d5f5 commit e774cb6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/modcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -949,20 +949,20 @@ static bool modcall_recurse(REQUEST *request, rlm_components_t component, int de
&result);

} else {
this = found;
uint32_t i;

do {
for (i = 0; i < count; i++) {
modcall_child(request, component,
depth + 1, entry, this,
depth + 1, entry, found,
&result);
if (this->actions[result] == MOD_ACTION_RETURN) {
if (found->actions[result] == MOD_ACTION_RETURN) {
priority = -1;
break;
}

this = this->next;
if (!this) this = g->children;
} while (this != found);
found = found->next;
if (!found) found = g->children;
}
}
MOD_LOG_CLOSE_BRACE;
goto calculate_result;
Expand Down

0 comments on commit e774cb6

Please sign in to comment.