diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-10-06 21:39:19 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-10-06 21:39:19 +0200 |
commit | 9b585fd066c238485b161b7664901e9d23ecf56b (patch) | |
tree | 2afc859318f5fcc544089362fe3bbbc66762330c | |
parent | ad97b8d43983730287946bc3b21ae3a24a746587 (diff) |
handle plugin load failure without crashing
-rw-r--r-- | src/exchange/test_taler_exchange_aggregator.c | 6 |
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)) { |