gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: check for no_age_commitment befo


From: gnunet
Subject: [taler-exchange] branch master updated: check for no_age_commitment before using uninitialized age_commitment hash
Date: Mon, 11 Sep 2023 22:14:18 +0200

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 31b317de check for no_age_commitment before using uninitialized 
age_commitment hash
31b317de is described below

commit 31b317de5945edda959fd653606e9d1bda260d14
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Sep 11 22:14:12 2023 +0200

    check for no_age_commitment before using uninitialized age_commitment hash
---
 src/exchange/taler-exchange-httpd_batch-deposit.c | 4 +++-
 src/util/crypto.c                                 | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_batch-deposit.c 
b/src/exchange/taler-exchange-httpd_batch-deposit.c
index 4ef14308..6bf70efb 100644
--- a/src/exchange/taler-exchange-httpd_batch-deposit.c
+++ b/src/exchange/taler-exchange-httpd_batch-deposit.c
@@ -469,7 +469,9 @@ parse_coin (struct MHD_Connection *connection,
         &dc->h_wire,
         &bd->h_contract_terms,
         &bd->wallet_data_hash,
-        &cdi->coin.h_age_commitment,
+        NULL != cdi->coin.no_age_commitment
+        ? NULL
+        : &cdi->coin.h_age_commitment,
         NULL != dc->policy_json ? &dc->h_policy : NULL,
         &cdi->coin.denom_pub_hash,
         bd->wallet_timestamp,
diff --git a/src/util/crypto.c b/src/util/crypto.c
index 8699035c..caa5a122 100644
--- a/src/util/crypto.c
+++ b/src/util/crypto.c
@@ -85,7 +85,9 @@ TALER_test_coin_valid (const struct TALER_CoinPublicInfo 
*coin_public_info,
 #endif
 
   TALER_coin_pub_hash (&coin_public_info->coin_pub,
-                       &coin_public_info->h_age_commitment,
+                       coin_public_info->no_age_commitment
+                       ? NULL
+                       : &coin_public_info->h_age_commitment,
                        &c_hash);
 
   if (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]