gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: fix uninitialized session


From: gnunet
Subject: [taler-exchange] branch master updated: fix uninitialized session
Date: Sat, 08 Feb 2020 17:49:58 +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 db46491d fix uninitialized session
db46491d is described below

commit db46491db994349a79cddae9fbfd6fd15ad16127
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Feb 8 17:49:56 2020 +0100

    fix uninitialized session
---
 src/auditor/taler-auditor-httpd_deposit-confirmation.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation.c 
b/src/auditor/taler-auditor-httpd_deposit-confirmation.c
index 87b1a26f..ab233ebc 100644
--- a/src/auditor/taler-auditor-httpd_deposit-confirmation.c
+++ b/src/auditor/taler-auditor-httpd_deposit-confirmation.c
@@ -101,6 +101,15 @@ verify_and_execute_deposit_confirmation (struct 
MHD_Connection *connection,
                                                    &h);
   GNUNET_assert (0 == pthread_mutex_unlock (&lock));
 
+  session = TAH_plugin->get_session (TAH_plugin->cls);
+  if (NULL == session)
+  {
+    GNUNET_break (0);
+    return TALER_MHD_reply_with_error (connection,
+                                       MHD_HTTP_INTERNAL_SERVER_ERROR,
+                                       TALER_EC_DB_SETUP_FAILED,
+                                       "failed to establish session with 
database");
+  }
   if (! cached)
   {
     /* Not in cache, need to verify the signature, persist it, and possibly 
cache it */
@@ -117,15 +126,6 @@ verify_and_execute_deposit_confirmation (struct 
MHD_Connection *connection,
                                          "master_sig");
     }
 
-    session = TAH_plugin->get_session (TAH_plugin->cls);
-    if (NULL == session)
-    {
-      GNUNET_break (0);
-      return TALER_MHD_reply_with_error (connection,
-                                         MHD_HTTP_INTERNAL_SERVER_ERROR,
-                                         TALER_EC_DB_SETUP_FAILED,
-                                         "failed to establish session with 
database");
-    }
     /* execute transaction */
     qs = TAH_plugin->insert_exchange_signkey (TAH_plugin->cls,
                                               session,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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