]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Provide the request list to the map_afrom_attr_str else we crash when there are embed...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 19 Feb 2024 19:31:51 +0000 (13:31 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 19 Feb 2024 19:32:46 +0000 (13:32 -0600)
src/lib/unlang/xlat_builtin.c

index 206830590df44c060f852ef5e867fe55a5246df8..87bcfb688f08fa7c4c7f43065dd6dbf9f0b155dc 100644 (file)
@@ -32,6 +32,7 @@ RCSID("$Id$")
 
 #include <freeradius-devel/server/base.h>
 #include <freeradius-devel/server/tmpl_dcursor.h>
+#include <freeradius-devel/unlang/interpret.h>
 #include <freeradius-devel/unlang/xlat_priv.h>
 #include <freeradius-devel/unlang/xlat_func.h>
 #include <freeradius-devel/unlang/xlat.h>
@@ -1273,6 +1274,9 @@ static xlat_action_t xlat_func_map(TALLOC_CTX *ctx, fr_dcursor_t *out,
                        .dict_def = request->dict,
                        .list_def = request_attr_request,
                        .prefix = TMPL_ATTR_REF_PREFIX_AUTO
+               },
+               .xlat = {
+                       .runtime_el = unlang_interpret_event_list(request)
                }
        };