diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-11-18 13:56:41 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-11-18 13:56:41 +0100 |
commit | 428ecee396e28247f5a1893c459f89ddf252dfd7 (patch) | |
tree | 3d42c2894d61e4f50b3f207c35f0f3a275915e87 /src | |
parent | f155aff749215b4fb287a915551c18c80abd2540 (diff) |
do not crash if session is NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/auditordb/test_auditordb.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/auditordb/test_auditordb.c b/src/auditordb/test_auditordb.c index e640400e3..d9fbf6fe7 100644 --- a/src/auditordb/test_auditordb.c +++ b/src/auditordb/test_auditordb.c @@ -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: |