]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use macro
authorAlan T. DeKok <aland@freeradius.org>
Mon, 21 Jul 2025 12:08:57 +0000 (14:08 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 27 Jul 2025 11:32:47 +0000 (07:32 -0400)
src/lib/server/process.h

index 500e3061c3050406ee666f89b59aea77ef979367..0a6fb45e280bf5cbf90bbeaf2f19ddd09362dde7 100644 (file)
@@ -152,8 +152,7 @@ do { \
  */
 static inline CC_HINT(always_inline) unlang_result_t *process_result_reset(unlang_result_t *p_result, fr_process_state_t const *state)
 {
-       p_result->rcode = state->default_rcode;
-       p_result->priority = MOD_ACTION_NOT_SET;
+       *p_result = UNLANG_RESULT_RCODE(state->default_rcode);
        return p_result;
 }