exchange

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

commit fadda02cfe8d90cb72cc0e553ebf25230d69e0b3
parent ebd13a5d5dc206dfe4f0544cba262af6ce565a64
Author: Florian Dold <florian@dold.me>
Date:   Thu,  7 Nov 2024 15:22:23 +0100

do not hash uninitialized payto

Diffstat:
Msrc/exchange/taler-exchange-httpd_batch-withdraw.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_batch-withdraw.c b/src/exchange/taler-exchange-httpd_batch-withdraw.c @@ -695,8 +695,6 @@ run_legi_check (struct BatchWithdrawContext *bwc) "reserves_get_origin")); return; } - TALER_full_payto_normalize_and_hash (payto_uri, - &bwc->h_normalized_payto); /* If _no_ results, reserve was created by merge, in which case no KYC check is required as the merge already did that. */ @@ -706,6 +704,9 @@ run_legi_check (struct BatchWithdrawContext *bwc) return; } + TALER_full_payto_normalize_and_hash (payto_uri, + &bwc->h_normalized_payto); + bwc->lch = TEH_legitimization_check ( &bwc->rc->async_scope_id, TALER_KYCLOGIC_KYC_TRIGGER_WITHDRAW,