summaryrefslogtreecommitdiff
path: root/src/exchange/test_taler_exchange_aggregator.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-10-06 21:39:19 +0200
committerChristian Grothoff <christian@grothoff.org>2017-10-06 21:39:19 +0200
commit9b585fd066c238485b161b7664901e9d23ecf56b (patch)
tree2afc859318f5fcc544089362fe3bbbc66762330c /src/exchange/test_taler_exchange_aggregator.c
parentad97b8d43983730287946bc3b21ae3a24a746587 (diff)
downloadexchange-9b585fd066c238485b161b7664901e9d23ecf56b.tar.gz
exchange-9b585fd066c238485b161b7664901e9d23ecf56b.tar.bz2
exchange-9b585fd066c238485b161b7664901e9d23ecf56b.zip
handle plugin load failure without crashing
Diffstat (limited to 'src/exchange/test_taler_exchange_aggregator.c')
-rw-r--r--src/exchange/test_taler_exchange_aggregator.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exchange/test_taler_exchange_aggregator.c b/src/exchange/test_taler_exchange_aggregator.c
index 7f9ea41da..0b56b4854 100644
--- a/src/exchange/test_taler_exchange_aggregator.c
+++ b/src/exchange/test_taler_exchange_aggregator.c
@@ -1125,6 +1125,12 @@ run (void *cls)
struct TALER_DenominationPublicKey dpk;
plugin = TALER_EXCHANGEDB_plugin_load (cfg);
+ if (NULL == plugin)
+ {
+ GNUNET_break (0);
+ result = 77;
+ return;
+ }
if (GNUNET_OK !=
plugin->create_tables (plugin->cls))
{