From 83f143af09ed71da6b18f29a40ee324da46e6813 Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Wed, 18 Jun 2025 11:32:31 +0100 Subject: [PATCH] Condition result is an unlang_result_t --- src/lib/unlang/condition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/unlang/condition.c b/src/lib/unlang/condition.c index 9d94057140..704572b8a9 100644 --- a/src/lib/unlang/condition.c +++ b/src/lib/unlang/condition.c @@ -42,7 +42,7 @@ static unlang_action_t unlang_if_resume(unlang_result_t *p_result, request_t *re /* * Something in the conditional evaluation failed. */ - if (!state->success) { + if (state->result.rcode == RLM_MODULE_FAIL) { unlang_group_t *g = unlang_generic_to_group(frame->instruction); unlang_cond_t *gext = unlang_group_to_cond(g); -- 2.47.3