[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] branch master updated: fix segv in test if
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] branch master updated: fix segv in test if DB interaction failed hard |
Date: |
Mon, 22 May 2017 17:02:11 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 6110954 fix segv in test if DB interaction failed hard
6110954 is described below
commit 6110954931d12e57757624ce1ea3d412db83460c
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon May 22 17:01:53 2017 +0200
fix segv in test if DB interaction failed hard
---
src/auditordb/test_auditordb.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/auditordb/test_auditordb.c b/src/auditordb/test_auditordb.c
index 3e8b191..bc23f11 100644
--- a/src/auditordb/test_auditordb.c
+++ b/src/auditordb/test_auditordb.c
@@ -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;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-exchange] branch master updated: fix segv in test if DB interaction failed hard,
gnunet <=