]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
If the request has timed out request->timeout is cleared
authorNick Porter <nick@portercomputing.co.uk>
Fri, 8 Aug 2025 09:39:39 +0000 (10:39 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 8 Aug 2025 11:09:37 +0000 (12:09 +0100)
src/lib/unlang/finally.c

index ec4205bed0deff3a27bed6a630e836db68a7ad95..43893d0d812701789a61079f4ceb6bcdef4cee1b 100644 (file)
@@ -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,