]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove redundant check that also breaks subrequests used to call submodules
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 11 Oct 2019 18:32:34 +0000 (13:32 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 11 Oct 2019 18:37:21 +0000 (13:37 -0500)
src/lib/unlang/subrequest.c

index 673e1f6301ba8b032a398b3b304fdee0180a868b..09412951d8ff47da15f783899fd1bdb20e6d34bc 100644 (file)
@@ -159,13 +159,6 @@ static unlang_action_t unlang_subrequest_start(REQUEST *request, rlm_rcode_t *pr
        unlang_stack_frame_t            *frame = &stack->frame[stack->depth];
        unlang_frame_state_subrequest_t *state = talloc_get_type_abort(frame->state, unlang_frame_state_subrequest_t);
        REQUEST                         *child = state->child;
-       unlang_group_t                  *g;
-
-       g = unlang_generic_to_group(frame->instruction);
-       if (!g->num_children) {
-               *presult = RLM_MODULE_NOOP;
-               return UNLANG_ACTION_CALCULATE_RESULT;
-       }
 
        /*
         *      Restore state from the parent to the