Make redundant-load-balance work again.
authorAlan T. DeKok <aland@freeradius.org>
Tue, 10 Jun 2014 15:41:50 +0000 (11:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 10 Jun 2014 15:42:03 +0000 (11:42 -0400)
src/main/modcall.c

index df384ca..51b977a 100644 (file)
@@ -728,10 +728,13 @@ redo:
                                modcall_child(request, component,
                                              depth + 1, entry, found,
                                              &result);
-                               if (c->actions[result] == MOD_ACTION_RETURN) {
+                               if (found->actions[result] == MOD_ACTION_RETURN) {
                                        priority = -1;
                                        break;
                                }
+
+                               found = found->next;
+                               if (!found) found = g->children;
                        }
                }
                MOD_LOG_CLOSE_BRACE();