]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
ancestors must be structural
authorAlan T. DeKok <aland@freeradius.org>
Thu, 20 Jul 2023 11:52:00 +0000 (07:52 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 20 Jul 2023 11:52:00 +0000 (07:52 -0400)
src/lib/util/pair.c

index 455e2ed92d9c06180c2874723ecc89a26a894977..f47a5e209e644c3647e62fcac9982cf66b0d8661 100644 (file)
@@ -2242,6 +2242,8 @@ int fr_pair_list_copy_by_ancestor(TALLOC_CTX *ctx, fr_pair_list_t *to,
        fr_pair_t       *tlv;
        bool            found = false;
 
+       if (!fr_type_is_structural(parent_da->type)) return -1;
+
        /*
         *      Allow for nested attributes.
         */