]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix travis build error
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 8 Oct 2019 01:14:37 +0000 (21:14 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 8 Oct 2019 01:14:43 +0000 (21:14 -0400)
src/lib/unlang/subrequest.c

index 2eadb17bc39432eb79ff825afac64d5245a694c9..efb13b21bff08a943f8c2e607dca411239a698f5 100644 (file)
@@ -109,6 +109,8 @@ 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 (state->session.enable) fr_state_store_in_parent(child,
                                                                    state->session.unique_ptr,
                                                                    state->session.unique_int);
@@ -119,8 +121,6 @@ static unlang_action_t unlang_subrequest_process(REQUEST *request, rlm_rcode_t *
                        frame->signal = NULL;
                }
 
-               rad_assert(rcode < NUM_ELEMENTS(instruction->actions));
-
        calculate_result:
                /*
                 *      Pass the result back to the module