From: Nick Porter Date: Tue, 2 Aug 2022 15:16:51 +0000 (+0100) Subject: Correct building of extents so that the last found parent is always returned X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=853e74eb4b70aff625f0d762b1e9be1ff725da1d;p=thirdparty%2Ffreeradius-server.git Correct building of extents so that the last found parent is always returned --- diff --git a/src/lib/server/tmpl_dcursor.c b/src/lib/server/tmpl_dcursor.c index c9503165483..d9deea7df40 100644 --- a/src/lib/server/tmpl_dcursor.c +++ b/src/lib/server/tmpl_dcursor.c @@ -598,14 +598,9 @@ int tmpl_extents_find(TALLOC_CTX *ctx, * If the reference was structural, record this * as an extent. */ - if (existing) switch (ar->da->type) { - case FR_TYPE_STRUCTURAL: - EXTENT_ADD(existing, NULL, curr, list_head); - break; + if (existing) EXTENT_ADD(existing, NULL, list_ctx, list_head); - default: - break; - } + break; } return 0;