]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
If a subrequest does not set the rcode, use noop
authorNick Porter <nick@portercomputing.co.uk>
Fri, 1 Nov 2024 13:58:39 +0000 (13:58 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 5 Nov 2024 10:13:55 +0000 (10:13 +0000)
src/lib/unlang/subrequest_child.c

index 365c98c1f2e643a81ddd2b5d34dffcedcc8cf0c0..5f313db3277a8b781136a022498c477677ac56a8 100644 (file)
@@ -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;