]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use macros for priorities, not hard-coded numbers
authorAlan T. DeKok <aland@freeradius.org>
Tue, 15 Jul 2025 14:47:12 +0000 (10:47 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 15 Jul 2025 15:59:53 +0000 (11:59 -0400)
this helps with transitioning the actual values

src/lib/unlang/transaction.c

index 3e587370c688a1835d416a16b572e67c0b90e943..20265fdd4955ea311a78562dfb55a6812ece779e 100644 (file)
@@ -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