exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 37000db5b0d03f1165b40c6d46f3f4ebe1fd4f2f
parent 86551a20488a4d83fd326be7a8974f23ac9bd3f0
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri,  9 May 2025 18:18:57 +0200

-indentation

Diffstat:
Msrc/exchangedb/pg_get_withdraw.c | 4----
Msrc/pq/pq_result_helper.c | 5+++--
2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/exchangedb/pg_get_withdraw.c b/src/exchangedb/pg_get_withdraw.c @@ -133,21 +133,18 @@ TEH_PG_get_withdraw ( GNUNET_PQ_cleanup_result (rs); return GNUNET_DB_STATUS_HARD_ERROR; } - if (no_blinding_seed != no_cs_r_values) { GNUNET_break (0); GNUNET_PQ_cleanup_result (rs); return GNUNET_DB_STATUS_HARD_ERROR; } - if (no_cs_r_choices != no_cs_r_values) { GNUNET_break (0); GNUNET_PQ_cleanup_result (rs); return GNUNET_DB_STATUS_HARD_ERROR; } - if (wd->num_coins != num_sigs) { GNUNET_break (0); @@ -159,7 +156,6 @@ TEH_PG_get_withdraw ( GNUNET_PQ_cleanup_result (rs); return GNUNET_DB_STATUS_HARD_ERROR; } - wd->age_proof_required = ! no_max_age; if (no_cs_r_values) { diff --git a/src/pq/pq_result_helper.c b/src/pq/pq_result_helper.c @@ -1439,8 +1439,8 @@ array_cleanup (void *cls, struct ArrayResultCls *info = cls; void **dst = rd; - if ((0 == info->same_size) && - (NULL != info->sizes)) + if ( (0 == info->same_size) && + (NULL != info->sizes) ) GNUNET_free (*(info->sizes)); /* Clean up signatures, if applicable */ @@ -1448,6 +1448,7 @@ array_cleanup (void *cls, (NULL != *dst)) { struct TALER_BlindedDenominationSignature *denom_sigs = *dst; + GNUNET_assert (NULL != info->num); for (size_t i = 0; i < *info->num; i++) GNUNET_free (denom_sigs[i].blinded_sig);