From 18c12f62347c2c3767a36577f352fc39df532801 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 15 Dec 2020 21:09:36 +0100 Subject: misc new /keys management related bugfixes --- src/exchange/taler-exchange-httpd.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/exchange/taler-exchange-httpd.c') diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 6009672f1..eb9d7c46b 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -696,7 +696,7 @@ handle_post_auditors (const struct TEH_RequestHandler *rh, if ( (NULL == args[0]) || (NULL == args[1]) || - (NULL != args[0]) ) + (NULL != args[2]) ) { GNUNET_break_op (0); return r404 (connection, "/auditors/$AUDITOR_PUB/$H_DENOM_PUB"); @@ -1476,12 +1476,7 @@ run_main_loop (int fh, } atexit (&write_stats); - ret = TEH_keys_init (); - if (GNUNET_OK == ret) - { - ret = TEH_loop_run (); - TEH_loop_done (); - } + ret = TEH_loop_run (); switch (ret) { case GNUNET_OK: @@ -1696,6 +1691,9 @@ main (int argc, if (GNUNET_OK != TEH_WIRE_init ()) return 42; + if (GNUNET_OK != + TEH_keys_init ()) + return 43; ret = TEH_loop_init (); if (GNUNET_OK == ret) { -- cgit v1.2.3