On 27 Aug 2014, at 08:10, Zenon Mousmoulas <zmousm@noc.grnet.gr> wrote:
27 Αυγ 2014, 3:43, ο/η Alan DeKok <aland@deployingradius.com> έγραψε:
Zenon Mousmoulas wrote:
Forcing return within a policy doesn't seem to work; the return code propagates correctly but processing doesn't stop.
Yes. Policies are like subroutines. You can return from a policy, but it doesn't affect the function which called the policy.
Unlang blocks as well?
I'm fairly sure it should return out of unlang blocks.
I'm not sure if this is by design? Using v3.0.x (not head but close).
It's by design.
Yes it's actually quite nice if the return stops at the depth of the policy call. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2