do not crash if session is NULL
This commit is contained in:
parent
f155aff749
commit
428ecee396
@ -179,8 +179,8 @@ run (void *cls)
|
||||
session,
|
||||
&master_pub,
|
||||
"https://exchange/"));
|
||||
|
||||
|
||||
|
||||
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||
"Test: insert_denomination_info\n");
|
||||
|
||||
@ -748,23 +748,24 @@ run (void *cls)
|
||||
|
||||
drop:
|
||||
if (NULL != session)
|
||||
{
|
||||
plugin->rollback (plugin->cls,
|
||||
session);
|
||||
|
||||
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||
"Test: auditor_delete_exchange\n");
|
||||
FAILIF (GNUNET_OK !=
|
||||
plugin->start (plugin->cls,
|
||||
session));
|
||||
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
|
||||
plugin->delete_exchange (plugin->cls,
|
||||
session,
|
||||
&master_pub));
|
||||
FAILIF (0 >
|
||||
plugin->commit (plugin->cls,
|
||||
session));
|
||||
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||
"Test: auditor_delete_exchange\n");
|
||||
FAILIF (GNUNET_OK !=
|
||||
plugin->start (plugin->cls,
|
||||
session));
|
||||
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
|
||||
plugin->delete_exchange (plugin->cls,
|
||||
session,
|
||||
&master_pub));
|
||||
FAILIF (0 >
|
||||
plugin->commit (plugin->cls,
|
||||
session));
|
||||
}
|
||||
GNUNET_break (GNUNET_OK ==
|
||||
plugin->drop_tables (plugin->cls));
|
||||
unload:
|
||||
|
Loading…
Reference in New Issue
Block a user