From: Alan T. DeKok Date: Sun, 27 Aug 2023 19:32:33 +0000 (-0400) Subject: copy dict when copying functions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c12d90fed3539f713ed73a1df4fbe2814105dd8d;p=thirdparty%2Ffreeradius-server.git copy dict when copying functions --- diff --git a/src/lib/unlang/xlat_alloc.c b/src/lib/unlang/xlat_alloc.c index 29dfbd67863..0428d1f7453 100644 --- a/src/lib/unlang/xlat_alloc.c +++ b/src/lib/unlang/xlat_alloc.c @@ -288,6 +288,7 @@ static int _xlat_copy_internal(NDEBUG_LOCATION_ARGS TALLOC_CTX *ctx, xlat_exp_he case XLAT_VIRTUAL: node->call.func = p->call.func; + node->call.dict = p->call.dict; node->call.ephemeral = p->call.ephemeral; break; @@ -303,6 +304,7 @@ static int _xlat_copy_internal(NDEBUG_LOCATION_ARGS TALLOC_CTX *ctx, xlat_exp_he * the xlat instantiation table later. */ node->call.func = p->call.func; + node->call.dict = p->call.dict; node->call.ephemeral = p->call.ephemeral; if (unlikely(_xlat_copy_internal(NDEBUG_LOCATION_VALS node, node->call.args, p->call.args) < 0)) goto error;