]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix arg order to unlang_subrequest_child_push
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 1 Jun 2025 01:40:29 +0000 (19:40 -0600)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 18 Jun 2025 12:53:05 +0000 (13:53 +0100)
src/lib/tls/session.c
src/lib/tls/virtual_server.c
src/lib/unlang/call.c
src/lib/unlang/subrequest.c
src/lib/unlang/subrequest.h
src/modules/rlm_eap/rlm_eap.c

index a9da0fb44bdd57d643dfed8b97b62007cf941520..62906005b52cfe7e815d586d26d769bc6689eb19 100644 (file)
@@ -2010,7 +2010,7 @@ unlang_action_t fr_tls_new_session_push(request_t *request, fr_tls_conf_t const
        MEM(pair_prepend_request(&vp, attr_tls_packet_type) >= 0);
        vp->vp_uint32 = enum_tls_packet_type_new_session->vb_uint32;
 
-       if (unlang_subrequest_child_push(child, NULL, child->parent, true, UNLANG_SUB_FRAME) < 0) {
+       if (unlang_subrequest_child_push(NULL, child, child->parent, true, UNLANG_SUB_FRAME) < 0) {
                return UNLANG_ACTION_FAIL;
        }
        if (unlang_function_push(NULL, child, NULL, tls_new_session_result, NULL, 0, UNLANG_SUB_FRAME, NULL) < 0) return UNLANG_ACTION_FAIL;
index 84f4aaabf6be65ed9ca27699b9b65a81f4c92f67..2cc0a806d00b2d730f1b3ca44d97f43476b4ed33 100644 (file)
@@ -61,7 +61,7 @@ unlang_action_t fr_tls_call_push(request_t *child, unlang_function_t resume,
         *      Sets up a dispatch frame in the parent
         *      and a result processing frame in the child.
         */
-       if (unlang_subrequest_child_push(child, NULL,
+       if (unlang_subrequest_child_push(NULL, child,
                                         tls_session,
                                         true, UNLANG_SUB_FRAME) < 0) {
                return UNLANG_ACTION_FAIL;
index e11fafe4784998163f0e60a3445f652337a3bd1f..3169b358a6f1ff2f13e4387b8cc8f765c0b1dc2c 100644 (file)
@@ -135,7 +135,7 @@ static unlang_action_t unlang_call_frame_init(unlang_result_t *p_result, request
                frame_repeat(frame, unlang_call_children);
        }
 
-       if (virtual_server_push(request, gext->server_cs, UNLANG_SUB_FRAME) < 0) goto error;
+       if (virtual_server_push(NULL, request, gext->server_cs, UNLANG_SUB_FRAME) < 0) goto error;
 
        return UNLANG_ACTION_PUSHED_CHILD;
 }
index 9409d4ae1ce8c3c7df97b9adafa4b115a0e9b5b6..76940199050bf0fc53cc91e15377347542d50ec4 100644 (file)
@@ -425,8 +425,7 @@ unlang_action_t unlang_subrequest_child_run(UNUSED unlang_result_t *p_result, UN
  *     - -1 on failure.
  */
 
-int unlang_subrequest_child_push(request_t *child,
-                                unlang_result_t *p_result, void const *unique_session_ptr, bool free_child, bool top_frame)
+int unlang_subrequest_child_push(unlang_result_t *p_result, request_t *child, void const *unique_session_ptr, bool free_child, bool top_frame)
 {
        unlang_child_request_t  *cr;
        unlang_stack_frame_t    *frame;
index ad65d086e5d5fa501b0c7e152c7c38794b12edbe..0c671b4630eccc3ff93e48832eaf33700eb7a69f 100644 (file)
@@ -43,8 +43,8 @@ request_t     *unlang_subrequest_alloc(request_t *parent, fr_dict_t const *namespace
 
 void           unlang_subrequest_detach_and_free(request_t **child);
 
-int            unlang_subrequest_child_push(request_t *child,
-                                            unlang_result_t *p_result, void const *unique_session_ptr, bool free_child, bool top_frame);
+int            unlang_subrequest_child_push(unlang_result_t *p_result, request_t *child,
+                                            void const *unique_session_ptr, bool free_child, bool top_frame);
 
 int            unlang_subrequest_child_push_and_detach(request_t *child);
 
index 30a89a1e0c2af445f917e2ff40c76b2ff49498ce..1476bd0f57e97e65a71b6e28ed159d73b893cb29 100644 (file)
@@ -826,7 +826,7 @@ static unlang_action_t eap_method_select(rlm_rcode_t *p_result, module_ctx_t con
         *      This must be done before pushing frames onto
         *      the child's stack.
         */
-       if (unlang_subrequest_child_push(eap_session->subrequest, &eap_session->submodule_result,
+       if (unlang_subrequest_child_push(&eap_session->submodule_result, eap_session->subrequest,
                                         eap_session,
                                         false, UNLANG_SUB_FRAME) < 0) {
        child_fail: