summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-12-15 21:09:36 +0100
committerChristian Grothoff <christian@grothoff.org>2020-12-15 21:09:36 +0100
commit18c12f62347c2c3767a36577f352fc39df532801 (patch)
tree5c69a1a15dbf8a5b6141f44aee1f8d24901648f5 /src/exchange/taler-exchange-httpd.c
parent97cbf8bd532a07a9263954f1c9685f4a608caf8d (diff)
downloadexchange-18c12f62347c2c3767a36577f352fc39df532801.tar.gz
exchange-18c12f62347c2c3767a36577f352fc39df532801.tar.bz2
exchange-18c12f62347c2c3767a36577f352fc39df532801.zip
misc new /keys management related bugfixes
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r--src/exchange/taler-exchange-httpd.c12
1 files changed, 5 insertions, 7 deletions
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)
{