commit 9a2d56bf533000a0f5e8931f1243d49fcef95afa
parent dc9cdefab9fc78159451807b2a1129ea7b975e85
Author: Florian Dold <florian@dold.me>
Date: Mon, 6 Jul 2026 20:01:34 +0200
load SPA config before loading SPA files
Diffstat:
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/challenger/challenger-httpd.c b/src/challenger/challenger-httpd.c
@@ -530,14 +530,6 @@ run (void *cls,
TALER_MHD_setup (go);
if (GNUNET_OK !=
- CH_spa_init ())
- {
- global_ret = EXIT_NOTCONFIGURED;
- GNUNET_SCHEDULER_shutdown ();
- return;
- }
-
- if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_time (config,
"CHALLENGER",
"VALIDATION_DURATION",
@@ -761,6 +753,15 @@ run (void *cls,
"Loading challenger SPA from default location\n");
}
+ if (GNUNET_OK !=
+ CH_spa_init ())
+ {
+ global_ret = EXIT_NOTCONFIGURED;
+ GNUNET_SCHEDULER_shutdown ();
+ return;
+ }
+
+
global_ret = EXIT_NOTCONFIGURED;
GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
NULL);