From: Alan T. DeKok Date: Thu, 20 Jul 2023 11:52:00 +0000 (-0400) Subject: ancestors must be structural X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c52fb87d13901010e2bb810e5b4d7151ff2975db;p=thirdparty%2Ffreeradius-server.git ancestors must be structural --- diff --git a/src/lib/util/pair.c b/src/lib/util/pair.c index 455e2ed92d9..f47a5e209e6 100644 --- a/src/lib/util/pair.c +++ b/src/lib/util/pair.c @@ -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. */