diff options
-rw-r--r-- | src/exchange-tools/taler-exchange-dbinit.c | 3 | ||||
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/exchange-tools/taler-exchange-dbinit.c b/src/exchange-tools/taler-exchange-dbinit.c index acc37be8d..32f0570f3 100644 --- a/src/exchange-tools/taler-exchange-dbinit.c +++ b/src/exchange-tools/taler-exchange-dbinit.c @@ -86,6 +86,7 @@ run (void *cls, fprintf (stderr, "Failed to initialize database.\n"); TALER_EXCHANGEDB_plugin_unload (plugin); + plugin = NULL; global_ret = EXIT_NOPERMISSION; return; } @@ -97,6 +98,7 @@ run (void *cls, fprintf (stderr, "Failed to prepare database.\n"); TALER_EXCHANGEDB_plugin_unload (plugin); + plugin = NULL; global_ret = EXIT_NOPERMISSION; return; } @@ -119,6 +121,7 @@ run (void *cls, } } TALER_EXCHANGEDB_plugin_unload (plugin); + plugin = NULL; } diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index ce67dce37..2c863a323 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -168,6 +168,7 @@ postgres_drop_tables (void *cls) if (NULL != pg->conn) { GNUNET_PQ_disconnect (pg->conn); + pg->conn = NULL; pg->init = false; } return GNUNET_OK; |