From: Arran Cudbard-Bell Date: Tue, 30 Jan 2018 23:46:24 +0000 (-0700) Subject: async xlat functions with no arguments can yield too! X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=368ad137374e4a8dbacc93ebef8fd2a9683d0541;p=thirdparty%2Ffreeradius-server.git async xlat functions with no arguments can yield too! --- diff --git a/src/main/xlat_eval.c b/src/main/xlat_eval.c index afb687ca785..0f2a73d2895 100644 --- a/src/main/xlat_eval.c +++ b/src/main/xlat_eval.c @@ -983,8 +983,8 @@ xlat_action_t xlat_frame_eval(TALLOC_CTX *ctx, fr_cursor_t *out, xlat_exp_t cons * If there's no children we can just * call the function directly. */ - if (xlat_frame_eval_repeat(ctx, out, child, NULL, - request, in, &result) == XLAT_ACTION_FAIL) goto fail; + xa = xlat_frame_eval_repeat(ctx, out, child, NULL, request, in, &result); + if (xa != XLAT_ACTION_DONE) goto finish; } continue;