diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-08 11:59:01 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-08 13:15:09 +0100 |
commit | 5f5babca93b915b4c957d1011248cbfdac41313a (patch) | |
tree | 2ce23edaacecb4e202ebd824fa5e808adff3ddee /src/exchange/taler-exchange-httpd.c | |
parent | 7ba2ee09667056d90ae564409df453a9867359d8 (diff) | |
download | exchange-5f5babca93b915b4c957d1011248cbfdac41313a.tar.gz exchange-5f5babca93b915b4c957d1011248cbfdac41313a.tar.bz2 exchange-5f5babca93b915b4c957d1011248cbfdac41313a.zip |
fix #4851
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 11cf00dd1..fa000d06b 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -625,10 +625,6 @@ exchange_serve_process_config () return GNUNET_SYSERR; } if (GNUNET_OK != - TEH_VALIDATION_init (cfg)) - return GNUNET_SYSERR; - - if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, "exchange", "master_public_key", @@ -637,7 +633,6 @@ exchange_serve_process_config () GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, "exchange", "master_public_key"); - TEH_VALIDATION_done (); return GNUNET_SYSERR; } if (GNUNET_OK != @@ -648,11 +643,17 @@ exchange_serve_process_config () fprintf (stderr, "Invalid master public key given in exchange configuration."); GNUNET_free (TEH_master_public_key_str); - TEH_VALIDATION_done (); return GNUNET_SYSERR; } GNUNET_free (TEH_master_public_key_str); + if ( (GNUNET_OK != + TEH_VALIDATION_init (cfg)) || + (GNUNET_OK != + TEH_WIRE_init ()) ) + return GNUNET_SYSERR; + + if (NULL == (TEH_plugin = TALER_EXCHANGEDB_plugin_load (cfg))) { |