Skip to content

Commit

Permalink
pass da_p to type_parse()
Browse files Browse the repository at this point in the history
so that it can update or add extensions.
  • Loading branch information
alandekok committed Jan 13, 2025
1 parent 2e46cbe commit 7cc983d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/util/dict.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/util/dict_tokenize.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7cc983d

Please sign in to comment.