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 'in_shutdown'


From: gnunet
Subject: [taler-exchange] branch master updated: fix uninitialized 'in_shutdown' variable
Date: Thu, 07 Mar 2024 10:47:15 +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 a2e6adcd fix uninitialized 'in_shutdown' variable
a2e6adcd is described below

commit a2e6adcd69000994a579223d97867c4aee4f04f2
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Mar 7 10:47:13 2024 +0100

    fix uninitialized 'in_shutdown' variable
---
 src/bank-lib/fakebank_twg_history.c           | 2 ++
 src/exchange/taler-exchange-httpd_kyc-proof.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/bank-lib/fakebank_twg_history.c 
b/src/bank-lib/fakebank_twg_history.c
index 35cc6587..c10358c1 100644
--- a/src/bank-lib/fakebank_twg_history.c
+++ b/src/bank-lib/fakebank_twg_history.c
@@ -148,6 +148,7 @@ TALER_FAKEBANK_twg_get_debit_history_ (
            (0 < hc->ha.delta))
       {
         acc_payto_uri = hc->acc->payto_uri;
+        in_shutdown = h->in_shutdown;
         GNUNET_assert (0 ==
                        pthread_mutex_unlock (&h->big_lock));
         if (overflow)
@@ -162,6 +163,7 @@ TALER_FAKEBANK_twg_get_debit_history_ (
       if (h->in_shutdown)
       {
         acc_payto_uri = hc->acc->payto_uri;
+        in_shutdown = h->in_shutdown;
         GNUNET_assert (0 ==
                        pthread_mutex_unlock (&h->big_lock));
         goto finish;
diff --git a/src/exchange/taler-exchange-httpd_kyc-proof.c 
b/src/exchange/taler-exchange-httpd_kyc-proof.c
index b223e6a1..bad377a2 100644
--- a/src/exchange/taler-exchange-httpd_kyc-proof.c
+++ b/src/exchange/taler-exchange-httpd_kyc-proof.c
@@ -327,6 +327,7 @@ proof_cb (
   case TALER_KYCLOGIC_STATUS_PROVIDER_FAILED:
   case TALER_KYCLOGIC_STATUS_USER_ABORTED:
   case TALER_KYCLOGIC_STATUS_ABORTED:
+    GNUNET_assert (NULL == kpc->kat);
     GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                 "KYC process %s/%s (Row #%llu) failed: %d\n",
                 provider_user_id,

-- 
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]