From 2bbe13aaf029242689da44c113e16f17efee1c6a Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sat, 22 Apr 2023 02:06:22 +0000 Subject: [PATCH] Fix error setting up UIA flows. --- src/Routes/RouteUiaFallback.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Routes/RouteUiaFallback.c b/src/Routes/RouteUiaFallback.c index b34c040..d8b90c8 100644 --- a/src/Routes/RouteUiaFallback.c +++ b/src/Routes/RouteUiaFallback.c @@ -50,6 +50,7 @@ ROUTE_IMPL(RouteUiaFallback, path, argp) int uiaResult; Config *config; Array *flows; + Array *flow; config = ConfigLock(args->matrixArgs->db); if (!config) @@ -67,8 +68,10 @@ ROUTE_IMPL(RouteUiaFallback, path, argp) } Log(LOG_DEBUG, "Building flows..."); + flow = ArrayCreate(); flows = ArrayCreate(); - ArrayAdd(flows, UiaStageBuild(authType, NULL)); + ArrayAdd(flow, UiaStageBuild(authType, NULL)); + ArrayAdd(flows, flow); Log(LOG_DEBUG, "about to UiaComplete()..."); uiaResult = UiaComplete(flows, args->context, args->matrixArgs->db, request, &response, config);