]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
silence compuler warning. Fixes #3034
authorAlan T. DeKok <aland@freeradius.org>
Tue, 8 Oct 2019 20:30:40 +0000 (16:30 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 8 Oct 2019 20:30:57 +0000 (16:30 -0400)
src/lib/unlang/subrequest.c

index efb13b21bff08a943f8c2e607dca411239a698f5..e1be5334b3b9d1420a4c84768224f51025595c3d 100644 (file)
@@ -100,7 +100,6 @@ static unlang_action_t unlang_subrequest_process(REQUEST *request, rlm_rcode_t *
 {
        unlang_stack_t                  *stack = request->stack;
        unlang_stack_frame_t            *frame = &stack->frame[stack->depth];
-       unlang_t                        *instruction = frame->instruction->parent;
        unlang_frame_state_subrequest_t *state = talloc_get_type_abort(frame->state, unlang_frame_state_subrequest_t);
        REQUEST                         *child = talloc_get_type_abort(state->child, REQUEST);
        rlm_rcode_t                     rcode;
@@ -109,7 +108,7 @@ static unlang_action_t unlang_subrequest_process(REQUEST *request, rlm_rcode_t *
 
        rcode = unlang_interpret(child);
        if (rcode != RLM_MODULE_YIELD) {
-               if (!fr_cond_assert(rcode < NUM_ELEMENTS(instruction->actions))) return UNLANG_ACTION_STOP_PROCESSING;
+               if (!fr_cond_assert(rcode < NUM_ELEMENTS(frame->instruction->actions))) return UNLANG_ACTION_STOP_PROCESSING;
 
                if (state->session.enable) fr_state_store_in_parent(child,
                                                                    state->session.unique_ptr,