From: Nick Porter Date: Thu, 6 Jul 2023 18:13:11 +0000 (+0100) Subject: Don't add structural pairs to flat test lists X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d60244abbbd081e4f80a56b8f8239eae91fbc36;p=thirdparty%2Ffreeradius-server.git Don't add structural pairs to flat test lists --- diff --git a/src/lib/util/pair_test_helpers.h b/src/lib/util/pair_test_helpers.h index 060cce4c31c..c4fe48e53fc 100644 --- a/src/lib/util/pair_test_helpers.h +++ b/src/lib/util/pair_test_helpers.h @@ -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);