Skip to content

Commit

Permalink
might as well set da->dict, too
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jan 13, 2025
1 parent 7cc983d commit eddcece
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/util/dict_tokenize.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit eddcece

Please sign in to comment.