From: Nick Porter Date: Fri, 8 Aug 2025 09:39:39 +0000 (+0100) Subject: If the request has timed out request->timeout is cleared X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1f796f37e66e046d964a9dab055c2567fb228af7;p=thirdparty%2Ffreeradius-server.git If the request has timed out request->timeout is cleared --- 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,