]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allow call to run with no children
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 31 Oct 2020 17:24:47 +0000 (12:24 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 31 Oct 2020 17:24:47 +0000 (12:24 -0500)
src/lib/unlang/call.c

index 171f82389d0c1aea13a318ff17b1c7e8059d712d..7bcbcf28544ea10797d2b10f3519320f1082623a 100644 (file)
@@ -100,11 +100,14 @@ static unlang_action_t unlang_call(request_t *request, rlm_rcode_t *presult)
        module_method_t         process_p;
        void                    *process_inst;
 
+       /*
+        *      Do not check for children here.
+        *
+        *      Call shouldn't require children to execute as there
+        *      can still be side effects from executing the virtual
+        *      server.
+        */
        g = unlang_generic_to_group(instruction);
-       if (!g->num_children) {
-               *presult = RLM_MODULE_NOOP;
-               return UNLANG_ACTION_CALCULATE_RESULT;
-       }
        gext = unlang_group_to_call(g);
 
        server = cf_section_name2(gext->server_cs);