From: Arran Cudbard-Bell Date: Fri, 2 Apr 2021 17:36:34 +0000 (+0100) Subject: Call the repeat func first if we have no initial func X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4da6d039ae378583e86456dacb62c71d9a024d65;p=thirdparty%2Ffreeradius-server.git Call the repeat func first if we have no initial func --- diff --git a/src/lib/unlang/function.c b/src/lib/unlang/function.c index 0961d7c9a3e..12daba5cd39 100644 --- a/src/lib/unlang/function.c +++ b/src/lib/unlang/function.c @@ -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 {