]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
push xlats to the correct list
authorAlan T. DeKok <aland@freeradius.org>
Wed, 9 Feb 2022 17:03:19 +0000 (12:03 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 9 Feb 2022 17:03:19 +0000 (12:03 -0500)
src/lib/unlang/xlat_expr.c

index 28e4a778f123beed6a0bd75e23ba859eb6ade9ea..87c9a7e9a369a0fdf8e781b9e09838d6ce7dc5bd 100644 (file)
@@ -513,7 +513,7 @@ static xlat_action_t xlat_logical_resume(TALLOC_CTX *ctx, fr_dcursor_t *out,
 }
 
 
-static xlat_action_t xlat_func_logical(TALLOC_CTX *ctx, fr_dcursor_t *out,
+static xlat_action_t xlat_func_logical(TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out,
                                       xlat_ctx_t const *xctx,
                                       request_t *request, UNUSED fr_value_box_list_t *in)
 {
@@ -530,7 +530,7 @@ static xlat_action_t xlat_func_logical(TALLOC_CTX *ctx, fr_dcursor_t *out,
                return XLAT_ACTION_FAIL;
        }
 
-       if (unlang_xlat_push(ctx, &rctx->last_success, out->dlist,
+       if (unlang_xlat_push(ctx, &rctx->last_success, &rctx->list,
                             request, rctx->current, UNLANG_SUB_FRAME) < 0) goto fail;
 
        return XLAT_ACTION_PUSH_UNLANG;