fix segv in test if DB interaction failed hard
This commit is contained in:
parent
91e3171982
commit
6110954931
@ -107,7 +107,7 @@ run (void *cls)
|
||||
plugin->create_tables (plugin->cls))
|
||||
{
|
||||
result = 77;
|
||||
goto drop;
|
||||
goto unload;
|
||||
}
|
||||
if (NULL ==
|
||||
(session = plugin->get_session (plugin->cls)))
|
||||
@ -717,10 +717,12 @@ run (void *cls)
|
||||
result = 0;
|
||||
|
||||
drop:
|
||||
if (NULL != session)
|
||||
plugin->rollback (plugin->cls,
|
||||
session);
|
||||
GNUNET_break (GNUNET_OK ==
|
||||
plugin->drop_tables (plugin->cls));
|
||||
unload:
|
||||
TALER_AUDITORDB_plugin_unload (plugin);
|
||||
plugin = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user