From: Arran Cudbard-Bell Date: Tue, 8 Oct 2019 01:14:37 +0000 (-0400) Subject: Fix travis build error X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c41b18f66d69d09eeb5b0a176c6629634cbddc2d;p=thirdparty%2Ffreeradius-server.git Fix travis build error --- diff --git a/src/lib/unlang/subrequest.c b/src/lib/unlang/subrequest.c index 2eadb17bc39..efb13b21bff 100644 --- a/src/lib/unlang/subrequest.c +++ b/src/lib/unlang/subrequest.c @@ -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