diff options
author | Florian Dold <florian@dold.me> | 2024-11-07 15:22:23 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-11-07 15:22:23 +0100 |
commit | fadda02cfe8d90cb72cc0e553ebf25230d69e0b3 (patch) | |
tree | a8a811958b690eda1c147adb4540e46a9a25ff8e | |
parent | ebd13a5d5dc206dfe4f0544cba262af6ce565a64 (diff) |
do not hash uninitialized payto
-rw-r--r-- | src/exchange/taler-exchange-httpd_batch-withdraw.c | 5 |
1 files 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 index 857856a7d..3e4a92776 100644 --- 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, |