From 7cc983dd5455d0fab2c881408250fbcb3b058991 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Mon, 13 Jan 2025 15:49:58 -0500 Subject: [PATCH] pass da_p to type_parse() so that it can update or add extensions. --- src/lib/util/dict.h | 2 +- src/lib/util/dict_tokenize.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/util/dict.h b/src/lib/util/dict.h index 6d6372bb407f..193a05ea2bee 100644 --- a/src/lib/util/dict.h +++ b/src/lib/util/dict.h @@ -304,7 +304,7 @@ typedef enum { } fr_dict_attr_err_t; typedef bool (*fr_dict_attr_valid_func_t)(fr_dict_attr_t *da); -typedef bool (*fr_dict_attr_type_parse_t)(fr_dict_attr_t *da, char const *name); +typedef bool (*fr_dict_attr_type_parse_t)(fr_dict_attr_t **da_p, char const *name); /* * Forward declarations to avoid circular references. diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index c3cae3c290f3..17c325cb5abf 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -440,7 +440,7 @@ static int dict_process_type_field(dict_tokenize_ctx_t *dctx, char const *name, return -1; } - if (!dctx->dict->proto->attr.type_parse(da_p, name); + if (!dctx->dict->proto->attr.type_parse(da_p, name)) { return -1; }