gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] 02/03: fix more VLAs


From: gnunet
Subject: [taler-exchange] 02/03: fix more VLAs
Date: Wed, 10 May 2023 01:08:10 +0200

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

grothoff pushed a commit to branch master
in repository exchange.

commit 09f09a21045ed6407fd23a9edb23c6da9299604c
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed May 10 01:07:20 2023 +0200

    fix more VLAs
---
 src/lib/exchange_api_lookup_aml_decision.c | 2 +-
 src/testing/testing_api_cmd_refresh.c      | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/lib/exchange_api_lookup_aml_decision.c 
b/src/lib/exchange_api_lookup_aml_decision.c
index fc1a8a8e..39d53c51 100644
--- a/src/lib/exchange_api_lookup_aml_decision.c
+++ b/src/lib/exchange_api_lookup_aml_decision.c
@@ -196,7 +196,7 @@ parse_decision_ok (struct TALER_EXCHANGE_LookupAmlDecision 
*lh,
     struct TALER_EXCHANGE_AmlDecisionDetail aml_history_ar[
       GNUNET_NZL (lr.details.ok.aml_history_length)];
     struct TALER_EXCHANGE_KycHistoryDetail kyc_attributes_ar[
-      lr.details.ok.kyc_attributes_length];
+      GNUNET_NZL (lr.details.ok.kyc_attributes_length)];
     enum GNUNET_GenericReturnValue ret = GNUNET_SYSERR;
 
     lr.details.ok.aml_history = aml_history_ar;
diff --git a/src/testing/testing_api_cmd_refresh.c 
b/src/testing/testing_api_cmd_refresh.c
index a8e2e8f3..9c2bd8d5 100644
--- a/src/testing/testing_api_cmd_refresh.c
+++ b/src/testing/testing_api_cmd_refresh.c
@@ -1239,9 +1239,11 @@ melt_traits (void *cls,
       TALER_TESTING_make_trait_h_age_commitment (
         index,
         rms->refresh_data.melt_h_age_commitment),
-      TALER_TESTING_make_trait_exchange_wd_value (index,
-                                                  &rms->mbds[index].alg_value),
       TALER_TESTING_make_trait_refresh_secret (&rms->rms),
+      (NULL != rms->mbds)
+      ? TALER_TESTING_make_trait_exchange_wd_value (index,
+                                                    
&rms->mbds[index].alg_value)
+      : TALER_TESTING_trait_end (),
       TALER_TESTING_trait_end ()
     };
 

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