From: Alan T. DeKok Date: Sun, 17 Sep 2023 14:23:11 +0000 (-0400) Subject: relax test a bit X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=863cc7da504e8959cb339d5128fbe1b141468c73;p=thirdparty%2Ffreeradius-server.git relax test a bit --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index 05151fa6622..92300b11d7e 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -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; }