From: Arran Cudbard-Bell Date: Tue, 7 Dec 2021 03:35:45 +0000 (-0500) Subject: Just move the result... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06671b9a1f3c23c50324b78df5373637bdb04c2f;p=thirdparty%2Ffreeradius-server.git Just move the result... --- diff --git a/src/lib/unlang/xlat_eval.c b/src/lib/unlang/xlat_eval.c index 55e512f033d..eeec8b002d1 100644 --- a/src/lib/unlang/xlat_eval.c +++ b/src/lib/unlang/xlat_eval.c @@ -1083,8 +1083,6 @@ xlat_action_t xlat_frame_eval_repeat(TALLOC_CTX *ctx, fr_dcursor_t *out, case XLAT_ALTERNATE: { - fr_dcursor_t from; - fr_assert(alternate); /* @@ -1118,9 +1116,7 @@ xlat_action_t xlat_frame_eval_repeat(TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_debug_log_list_result(request, result); VALUE_BOX_TALLOC_LIST_VERIFY(result); - fr_dcursor_init(&from, result); - fr_dcursor_merge(out, &from); - fr_assert(fr_dlist_empty(result)); + fr_dlist_move(out->dlist, result); } break;