From: Alan T. DeKok Date: Wed, 20 Sep 2023 21:05:03 +0000 (-0400) Subject: maps cannot have local variables X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f2edd9c709896a16817dc9fcf29f40f53940433;p=thirdparty%2Ffreeradius-server.git maps cannot have local variables because the underlying map doesn't deal well with them :( --- diff --git a/src/lib/server/map.c b/src/lib/server/map.c index 81e311c1dc3..b778d52a179 100644 --- a/src/lib/server/map.c +++ b/src/lib/server/map.c @@ -957,6 +957,12 @@ do_children: goto error; } + if (tmpl_is_attr(map->lhs) && tmpl_attr_tail_da(map->lhs)->flags.local) { + cf_log_err(ci, "Invalid location for local attribute '%s'", map->lhs->name); + talloc_free(map); + goto error; /* re-do "goto marker" stuff to print out spaces ? */ + } + MAP_VERIFY(map); /*