]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
cannot assign list to attribute. Helps with #4103
authorAlan T. DeKok <aland@freeradius.org>
Tue, 8 Jun 2021 17:15:36 +0000 (13:15 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 8 Jun 2021 17:16:12 +0000 (13:16 -0400)
foo := bar[*]

src/main/map.c

index 451a58a15c473c3d1db69042a3d8ac6a4bb466b6..31ffe4f6179ca41f8b525d1fc8a5c1f57992c9aa 100644 (file)
@@ -290,8 +290,8 @@ int map_afrom_cp(TALLOC_CTX *ctx, vp_map_t **out, CONF_PAIR *cp,
         *      be done in an xlat.
         */
        if ((map->rhs->type == TMPL_TYPE_ATTR) &&
-           (map->rhs->tmpl_num == NUM_COUNT)) {
-               cf_log_err_cp(cp, "Cannot assign from a count");
+           ((map->rhs->tmpl_num == NUM_COUNT) || (map->rhs->tmpl_num == NUM_ALL))) {
+               cf_log_err_cp(cp, "Cannot assign from a count / wildcard");
                goto error;
        }