From 1f796f37e66e046d964a9dab055c2567fb228af7 Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Fri, 8 Aug 2025 10:39:39 +0100 Subject: [PATCH] If the request has timed out request->timeout is cleared --- src/lib/unlang/finally.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/unlang/finally.c b/src/lib/unlang/finally.c index ec4205bed0..43893d0d81 100644 --- a/src/lib/unlang/finally.c +++ b/src/lib/unlang/finally.c @@ -81,7 +81,7 @@ static unlang_action_t unlang_finally(UNUSED unlang_result_t *p_result, request_ * Ensure the request has at least min_time to continue * executing before we cancel it. */ - if (fr_time_delta_lt(state->min_time, fr_timer_remaining(request->timeout))) { + if (request->timeout && fr_time_delta_lt(state->min_time, fr_timer_remaining(request->timeout))) { if (unlikely(fr_timer_in(unlang_interpret_frame_talloc_ctx(request), unlang_interpret_event_list(request)->tl, &request->timeout, state->min_time, false, unlang_timeout_handler, state) < 0)) { @@ -92,7 +92,7 @@ static unlang_action_t unlang_finally(UNUSED unlang_result_t *p_result, request_ /* * Finally should be transparent to allow the rcode from - * process module to propegate back up, if there are no + * process module to propagate back up, if there are no * modules called. */ if (unlikely(unlang_interpret_push_instruction(&state->result, request, state->instruction, -- 2.47.2