From: Nick Porter Date: Thu, 24 Nov 2022 17:34:48 +0000 (+0000) Subject: Fallback to internal dictionary if request->dict not set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ae62aa0731b5c4a254ef4b3fa78266f0733dc16;p=thirdparty%2Ffreeradius-server.git Fallback to internal dictionary if request->dict not set Currently all trigger args are in the internal dictionary and request->dict is not set. --- diff --git a/src/lib/server/trigger.c b/src/lib/server/trigger.c index 45f56a7fe16..346fbbb3378 100644 --- a/src/lib/server/trigger.c +++ b/src/lib/server/trigger.c @@ -83,7 +83,8 @@ xlat_action_t trigger_xlat(TALLOC_CTX *ctx, fr_dcursor_t *out, head = request_data_reference(request, &trigger_exec_main, REQUEST_INDEX_TRIGGER_ARGS); - da = fr_dict_attr_by_name(NULL, fr_dict_root(request->dict), in_head->vb_strvalue); + da = fr_dict_attr_by_name(NULL, fr_dict_root(request->dict ? request->dict : fr_dict_internal()), + in_head->vb_strvalue); if (!da) { ERROR("Unknown attribute \"%pV\"", in_head); return XLAT_ACTION_FAIL;