]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
this loop isn't necessary. It's done by xlat_copy.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 19 May 2022 14:48:26 +0000 (10:48 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 19 May 2022 15:40:47 +0000 (11:40 -0400)
src/lib/unlang/xlat_tokenize.c

index 9f69a5195b758e5afe13b4c60bdab8721f420a59..a39c7f2e19b95bf77eff9ea4253184730416b948 100644 (file)
@@ -126,13 +126,7 @@ xlat_exp_t *xlat_exp_func_alloc(TALLOC_CTX *ctx, xlat_t *func, xlat_exp_head_t c
                return NULL;
        }
        node->flags = func->flags;
-
-       /*
-        *      A pure function can have impure arguments, e.g. hash(sql query).
-        */
-       xlat_exp_foreach(args, arg) {
-               xlat_flags_merge(&node->flags, &arg->flags);
-       }
+       xlat_flags_merge(&node->flags, &args->flags);
 
        return node;
 }