gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: -fix use-after-free


From: gnunet
Subject: [taler-merchant] branch master updated: -fix use-after-free
Date: Sun, 29 Oct 2023 23:55:54 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new e9e68686 -fix use-after-free
e9e68686 is described below

commit e9e686866592eed98f5068e5eefc83e844c53bf7
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Oct 29 23:55:50 2023 +0100

    -fix use-after-free
---
 src/lib/merchant_api_reward_pickup.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/merchant_api_reward_pickup.c 
b/src/lib/merchant_api_reward_pickup.c
index 6302ba06..ac5f081b 100644
--- a/src/lib/merchant_api_reward_pickup.c
+++ b/src/lib/merchant_api_reward_pickup.c
@@ -199,6 +199,7 @@ pickup_done_cb (void *cls,
                                   &pcd->exchange_vals,
                                   &fc))
       {
+        GNUNET_break_op (0);
         ok = GNUNET_SYSERR;
         break;
       }
@@ -300,7 +301,8 @@ csr_cb (void *cls,
     {
       struct TALER_EXCHANGE_PrivateCoinDetails *pcd = &tp->pcds[pd->off];
 
-      pcd->exchange_vals = csrr->details.ok.alg_values;
+      TALER_denom_ewv_deep_copy (&pcd->exchange_vals,
+                                 &csrr->details.ok.alg_values);
     }
     if (0 != tp->csr_active)
       return;

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