From: Alan T. DeKok Date: Tue, 15 Jul 2025 14:47:12 +0000 (-0400) Subject: use macros for priorities, not hard-coded numbers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d536da3bee307f6f9f2ec0d0e52ca4dba1c6d523;p=thirdparty%2Ffreeradius-server.git use macros for priorities, not hard-coded numbers this helps with transitioning the actual values --- diff --git a/src/lib/unlang/transaction.c b/src/lib/unlang/transaction.c index 3e587370c6..20265fdd49 100644 --- a/src/lib/unlang/transaction.c +++ b/src/lib/unlang/transaction.c @@ -245,9 +245,9 @@ static unlang_t *unlang_compile_transaction(unlang_t *parent, unlang_compile_ctx * The default for a failed transaction is to continue to * the next instruction on failure. */ - c->actions.actions[RLM_MODULE_FAIL] = 1; - c->actions.actions[RLM_MODULE_INVALID] = 1; - c->actions.actions[RLM_MODULE_DISALLOW] = 1; + c->actions.actions[RLM_MODULE_FAIL] = MOD_PRIORITY(1); + c->actions.actions[RLM_MODULE_INVALID] = MOD_PRIORITY(1); + c->actions.actions[RLM_MODULE_DISALLOW] = MOD_PRIORITY(1); /* * For the children of this keyword, any failure is