From: Nick Porter Date: Fri, 1 Nov 2024 13:58:39 +0000 (+0000) Subject: If a subrequest does not set the rcode, use noop X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b052743ef3ac4deacaedeb60000c4b51dd4cb04;p=thirdparty%2Ffreeradius-server.git If a subrequest does not set the rcode, use noop --- diff --git a/src/lib/unlang/subrequest_child.c b/src/lib/unlang/subrequest_child.c index 365c98c1f2e..5f313db3277 100644 --- a/src/lib/unlang/subrequest_child.c +++ b/src/lib/unlang/subrequest_child.c @@ -246,6 +246,8 @@ static unlang_action_t unlang_subrequest_calculate_result(UNUSED rlm_rcode_t *p_ { unlang_frame_state_subrequest_t *state = talloc_get_type_abort(frame->state, unlang_frame_state_subrequest_t); + if (*p_result == RLM_MODULE_NOT_SET) *p_result = RLM_MODULE_NOOP; + if (state->free_child) unlang_subrequest_detach_and_free(&state->child); return UNLANG_ACTION_CALCULATE_RESULT;