]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we now have head->flags, so just use that
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Jul 2022 12:51:39 +0000 (08:51 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Jul 2022 18:08:39 +0000 (14:08 -0400)
src/lib/unlang/xlat_eval.c

index ee11861b61bcf6d6421613deb52a0e36ca07fd69..06509392158efff68fc9f1227af0118ac39a7835 100644 (file)
@@ -1628,21 +1628,7 @@ void xlat_eval_free(void)
  */
 bool xlat_async_required(xlat_exp_head_t const *head)
 {
-       xlat_exp_t *first;
-
        if (!head) return false;
 
-       first = xlat_exp_head(head);
-       if (first->type != XLAT_GROUP) {
-               return first->flags.needs_async;
-       }
-
-       /*
-        *      Set needs_async on the entire list.
-        */
-       xlat_exp_foreach(head, node) {
-               if (node->flags.needs_async) return true;
-       }
-
-       return false;
+       return head->flags.needs_async;
 }