]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
async xlat functions with no arguments can yield too!
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 Jan 2018 23:46:24 +0000 (16:46 -0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 Jan 2018 23:46:24 +0000 (16:46 -0700)
src/main/xlat_eval.c

index afb687ca785ab0a7d4d3be1487f298af6bc335c1..0f2a73d28958f757c5fd2796df806534e8b63e26 100644 (file)
@@ -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;