From 9ae8a880401bdbf2fbb40c50830af0a46ba0d4a9 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Sun, 9 Mar 2025 21:26:01 -0400 Subject: [PATCH] failure to find an OID isn't an OOM issue --- src/modules/rlm_dict/rlm_dict.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/rlm_dict/rlm_dict.c b/src/modules/rlm_dict/rlm_dict.c index f95cedb1e8..8c4a99af55 100644 --- a/src/modules/rlm_dict/rlm_dict.c +++ b/src/modules/rlm_dict/rlm_dict.c @@ -125,7 +125,11 @@ static xlat_action_t xlat_dict_attr_by_oid(TALLOC_CTX *ctx, fr_dcursor_t *out, return XLAT_ACTION_FAIL; } - MEM(da = fr_dict_attr_child_by_num(parent, attr)); + da = fr_dict_attr_child_by_num(parent, attr); + if (!da) { + RDEBUG("Parent %s has no child %u", parent->name, attr); + return XLAT_ACTION_FAIL; + } MEM(vb = fr_value_box_alloc_null(ctx)); -- 2.47.2