]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Call the repeat func first if we have no initial func
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 2 Apr 2021 17:36:34 +0000 (18:36 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 2 Apr 2021 17:36:34 +0000 (18:36 +0100)
src/lib/unlang/function.c

index 0961d7c9a3e8a557e64a00f24c175388f24f8189..12daba5cd3907391ac74e5863596af1eb46f666d 100644 (file)
@@ -93,7 +93,7 @@ static unlang_action_t unlang_function_call(rlm_rcode_t *p_result, request_t *re
         */
        caller = request->module;
        request->module = NULL;
-       if (!state->done_func) {
+       if (!state->done_func && state->func) {
                ua = state->func(p_result, &frame->priority, request, state->uctx);
                state->done_func = true;
        } else {