]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set internal flag from parent
authorAlan T. DeKok <aland@freeradius.org>
Mon, 20 Mar 2023 15:25:59 +0000 (11:25 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 20 Mar 2023 16:19:04 +0000 (12:19 -0400)
so that others don't need to do this

src/lib/util/dict_unknown.c

index 73c35d7d263120f7afe136fc12b7fe1edb38c5e2..c86ac2f1a6505c3b6ca9c23da3be14dcc0e343af 100644 (file)
@@ -274,7 +274,8 @@ fr_dict_attr_t      *fr_dict_unknown_vendor_afrom_num(TALLOC_CTX *ctx,
        fr_dict_attr_flags_t    flags = {
                                        .is_unknown = 1,
                                        .type_size = 1,
-                                       .length = 1
+                                       .length = 1,
+                                       .internal = parent->flags.internal,
                                };
 
        /*
@@ -311,6 +312,7 @@ fr_dict_attr_t *fr_dict_unknown_tlv_afrom_num(TALLOC_CTX *ctx, fr_dict_attr_t co
 {
        fr_dict_attr_flags_t    flags = {
                                        .is_unknown = true,
+                                       .internal = parent->flags.internal,
                                };
 
        if (!fr_type_is_structural_except_vsa(parent->type)) {
@@ -338,6 +340,7 @@ fr_dict_attr_t      *fr_dict_unknown_attr_afrom_num(TALLOC_CTX *ctx, fr_dict_attr_t c
 {
        fr_dict_attr_flags_t    flags = {
                                        .is_unknown = true,
+                                       .internal = parent->flags.internal,
                                };
 
        if (!fr_type_is_structural_except_vsa(parent->type)) {