]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
relax checks
authorAlan T. DeKok <aland@freeradius.org>
Fri, 10 Dec 2021 22:49:41 +0000 (17:49 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 10 Dec 2021 22:49:41 +0000 (17:49 -0500)
src/lib/unlang/compile.c

index 332201ae946140e4d19e31f3b74908ae5199b316..17741a119a609e4be52213254845ad5e869dcce6 100644 (file)
@@ -586,18 +586,6 @@ static bool pass2_fixup_map(map_t *map, tmpl_rules_t const *rules, fr_dict_attr_
                                return false;
                        }
                }
-
-               /*
-                *      If the LHS is structural, then that limits
-                *      what the RHS can be.
-                */
-               if (tmpl_is_list(map->lhs) ||
-                   (tmpl_is_attr(map->lhs) && fr_type_is_structural(tmpl_da(map->lhs)->type))) {
-                       if (!tmpl_is_list(map->rhs) && !tmpl_is_attr(map->rhs)) {
-                               cf_log_err(map->ci, "Cannot assign xlat / data / exec to list or structural type");
-                               return false;
-                       }
-               }
        }
 
        /*