]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't add structural pairs to flat test lists
authorNick Porter <nick@portercomputing.co.uk>
Thu, 6 Jul 2023 18:13:11 +0000 (19:13 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 6 Jul 2023 18:13:11 +0000 (19:13 +0100)
src/lib/util/pair_test_helpers.h

index 060cce4c31c0377ca7ec38dbff7231f613566feb..c4fe48e53fc6acf9c7035c989230e0c06d7e7702 100644 (file)
@@ -51,7 +51,7 @@ static inline int fr_pair_test_list_alloc(TALLOC_CTX *ctx, fr_pair_list_t *out,
 
        for (p = test_defs;
             p->attr != -1;
-            p++) if (fr_pair_prepend_by_da(ctx, NULL, out, *p->da) < 0) return -1;
+            p++) if (!fr_type_is_structural((*p->da)->type) && fr_pair_prepend_by_da(ctx, NULL, out, *p->da) < 0) return -1;
 
        PAIR_LIST_VERIFY(out);