handle plugin load failure without crashing
This commit is contained in:
parent
ad97b8d439
commit
9b585fd066
@ -1125,6 +1125,12 @@ run (void *cls)
|
|||||||
struct TALER_DenominationPublicKey dpk;
|
struct TALER_DenominationPublicKey dpk;
|
||||||
|
|
||||||
plugin = TALER_EXCHANGEDB_plugin_load (cfg);
|
plugin = TALER_EXCHANGEDB_plugin_load (cfg);
|
||||||
|
if (NULL == plugin)
|
||||||
|
{
|
||||||
|
GNUNET_break (0);
|
||||||
|
result = 77;
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (GNUNET_OK !=
|
if (GNUNET_OK !=
|
||||||
plugin->create_tables (plugin->cls))
|
plugin->create_tables (plugin->cls))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user