]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Honour exec module timeout for module calls
authorNick Porter <nick@portercomputing.co.uk>
Mon, 20 Mar 2023 10:43:13 +0000 (10:43 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 20 Mar 2023 10:44:33 +0000 (10:44 +0000)
src/modules/rlm_exec/rlm_exec.c

index 769bece3ad17e2c7391303ba5b12282a42753eab..6284b769402562c653e0c6076f457713d7c61877 100644 (file)
@@ -466,7 +466,7 @@ static unlang_action_t CC_HINT(nonnull) mod_exec_dispatch(rlm_rcode_t *p_result,
        fr_value_box_list_init(&m->box);
        return unlang_module_yield_to_tmpl(m, &m->box,
                                           request, inst->tmpl,
-                                          TMPL_ARGS_EXEC(env_pairs, fr_time_delta_wrap(0), true, &m->status),
+                                          TMPL_ARGS_EXEC(env_pairs, inst->timeout, true, &m->status),
                                           mod_exec_wait_resume,
                                           NULL, &m->box);
 }