]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
relax test a bit
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Sep 2023 14:23:11 +0000 (10:23 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Sep 2023 14:23:11 +0000 (10:23 -0400)
src/lib/unlang/compile.c

index 05151fa6622c6921d3411385619671455fc48874..92300b11d7eab0b9b5858621e5e5e9d15eae09ca 100644 (file)
@@ -1566,7 +1566,7 @@ static unlang_t *compile_edit_section(unlang_t *parent, unlang_compile_t *unlang
                                /*
                                 *      The edit code doesn't do this correctly, so we just forbid it.
                                 */
-                               if (tmpl_attr_num_elements(child->lhs) > 1) {
+                               if (strchr(child->lhs->name, '.') != NULL) {
                                        cf_log_err(child->ci, "List deletion must operate directly on the final child");
                                        goto fail;
                                }