From: Alan T. DeKok Date: Sun, 17 Jul 2022 12:51:39 +0000 (-0400) Subject: we now have head->flags, so just use that X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4c5d0a92d9b1318be9cf215e6b0f9ce85863461;p=thirdparty%2Ffreeradius-server.git we now have head->flags, so just use that --- diff --git a/src/lib/unlang/xlat_eval.c b/src/lib/unlang/xlat_eval.c index ee11861b61b..06509392158 100644 --- a/src/lib/unlang/xlat_eval.c +++ b/src/lib/unlang/xlat_eval.c @@ -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; }