Fix for redundant-load-balance. Closes #945
authorAlan T. DeKok <aland@freeradius.org>
Sat, 4 Apr 2015 21:57:53 +0000 (17:57 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 4 Apr 2015 21:57:53 +0000 (17:57 -0400)
commitb1236f0fb8bedd9694f0bceb9e4728142566b26d
treed802b62bc84926d51e1059afe7c125f79d08850f
parentbf9b3520251dd976135fe1445a677de2b89a7fbf
Fix for redundant-load-balance.  Closes #945

In normal operations, modcall_child / modcall_recurse processes
the current node, and all of its children.  For redundant-load-balance,
we want to loop BACK from the end of the list to the start, AND
stop when we reach the first one we found again.

This means we have to tell the functions "process ONE node only",
and do all "next" operations ourselves.
src/main/modcall.c
src/tests/keywords/redundant-redundant [new file with mode: 0644]