handle plugin load failure without crashing

This commit is contained in:
Christian Grothoff 2017-10-06 21:39:19 +02:00
parent ad97b8d439
commit 9b585fd066
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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))
{