]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Populate this frame's result with the results of the resolutions
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 1 Jun 2025 02:34:41 +0000 (20:34 -0600)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 18 Jun 2025 12:53:07 +0000 (13:53 +0100)
src/modules/rlm_ldap/groups.c

index f86c462af4206042a8b89c71cc24b90f8a855c95..74742b43772beff577b84076d3c6b5e00655f0b3 100644 (file)
@@ -396,7 +396,9 @@ static unlang_action_t ldap_cacheable_userobj_resolve(unlang_result_t *p_result,
         */
        if (*group_ctx->dn) {
                if (unlang_function_repeat_set(request, ldap_cacheable_userobj_resolve) < 0) RETURN_UNLANG_FAIL;
-               if (unlang_function_push(NULL, request, ldap_group_dn2name_start, ldap_group_dn2name_resume,
+               if (unlang_function_push(p_result, request,
+                                        ldap_group_dn2name_start,
+                                        ldap_group_dn2name_resume,
                                         ldap_group_userobj_cancel, ~FR_SIGNAL_CANCEL,
                                         UNLANG_SUB_FRAME, group_ctx) < 0) RETURN_UNLANG_FAIL;
                return UNLANG_ACTION_PUSHED_CHILD;
@@ -407,7 +409,9 @@ static unlang_action_t ldap_cacheable_userobj_resolve(unlang_result_t *p_result,
         */
        if (*group_ctx->group_name) {
                if (unlang_function_repeat_set(request, ldap_cacheable_userobj_resolve) < 0) RETURN_UNLANG_FAIL;
-               if (unlang_function_push(NULL, request, ldap_group_name2dn_start, ldap_group_name2dn_resume,
+               if (unlang_function_push(p_result, request,
+                                        ldap_group_name2dn_start,
+                                        ldap_group_name2dn_resume,
                                         ldap_group_userobj_cancel, ~FR_SIGNAL_CANCEL,
                                         UNLANG_SUB_FRAME, group_ctx) < 0) RETURN_UNLANG_FAIL;
                return UNLANG_ACTION_PUSHED_CHILD;