gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: fix #7107


From: gnunet
Subject: [taler-exchange] branch master updated: fix #7107
Date: Wed, 24 Nov 2021 00:25:20 +0100

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 ef296581 fix #7107
ef296581 is described below

commit ef2965816109cdf116b91cd838163b294c70057a
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Nov 24 00:25:17 2021 +0100

    fix #7107
---
 src/exchange-tools/taler-exchange-dbinit.c  | 3 +++
 src/exchangedb/plugin_exchangedb_postgres.c | 1 +
 2 files changed, 4 insertions(+)

diff --git a/src/exchange-tools/taler-exchange-dbinit.c 
b/src/exchange-tools/taler-exchange-dbinit.c
index acc37be8..32f0570f 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 ce67dce3..2c863a32 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;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]