]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
might as well set da->dict, too
authorAlan T. DeKok <aland@freeradius.org>
Mon, 13 Jan 2025 20:50:39 +0000 (15:50 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 13 Jan 2025 20:50:39 +0000 (15:50 -0500)
src/lib/util/dict_tokenize.c

index 17c325cb5abffa850375de27dadb31e43aa7fc0c..c9d3874374655282c65194bdab84cdc663e2aed3 100644 (file)
@@ -974,6 +974,7 @@ static int dict_read_process_common(dict_tokenize_ctx_t *dctx, fr_dict_attr_t **
        da = dict_attr_alloc_null(dctx->dict->pool, dctx->dict->proto);
        if (unlikely(da == NULL)) return -1;
        dict_attr_location_set(dctx, da);
+       da->dict = dctx->dict;
 
        /*
         *      Set the attribute flags from the base flags.
@@ -1940,6 +1941,7 @@ static int dict_read_process_enum(dict_tokenize_ctx_t *dctx, char **argv, int ar
        da = dict_attr_alloc_null(dctx->dict->pool, dctx->dict->proto);
        if (unlikely(da == NULL)) return -1;
        dict_attr_location_set(dctx, da);
+       da->dict = dctx->dict;
 
        /*
         *      Set the attribute flags from the base flags.
@@ -2313,6 +2315,7 @@ static int dict_read_process_struct(dict_tokenize_ctx_t *dctx, char **argv, int
        da = dict_attr_alloc_null(dctx->dict->pool, dctx->dict->proto);
        if (unlikely(da == NULL)) return -1;
        dict_attr_location_set(dctx, da);
+       da->dict = dctx->dict;
 
        if (unlikely(dict_attr_type_init(&da, FR_TYPE_STRUCT) < 0)) {
        error: