fix segv in test if DB interaction failed hard

This commit is contained in:
Christian Grothoff 2017-05-22 17:01:53 +02:00
parent 91e3171982
commit 6110954931
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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:
plugin->rollback (plugin->cls,
session);
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;
}