summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-05-10 01:07:20 +0200
committerChristian Grothoff <christian@grothoff.org>2023-05-10 01:07:20 +0200
commit09f09a21045ed6407fd23a9edb23c6da9299604c (patch)
treec152701c70d0dd48091e4e53af28deeee98ef310
parentc014acf3c4ccf03109b0141d6b68d4f464464e19 (diff)
downloadexchange-09f09a21045ed6407fd23a9edb23c6da9299604c.tar.gz
exchange-09f09a21045ed6407fd23a9edb23c6da9299604c.tar.bz2
exchange-09f09a21045ed6407fd23a9edb23c6da9299604c.zip
fix more VLAs
-rw-r--r--src/lib/exchange_api_lookup_aml_decision.c2
-rw-r--r--src/testing/testing_api_cmd_refresh.c6
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 fc1a8a8e4..39d53c51f 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 a8e2e8f39..9c2bd8d5e 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 ()
};