diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-12-23 01:44:06 +0800 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-12-23 01:44:06 +0800 |
commit | 54a19689ab02a413e360ab2267c0c5a899b95711 (patch) | |
tree | 7e0cbebb9d31a19f7a32ca7f1af1064a30ca8d5e /src/lib/exchange_api_batch_withdraw.c | |
parent | ba71c18526cb8adf3ac69b5df919bb1f3c92488f (diff) | |
download | exchange-54a19689ab02a413e360ab2267c0c5a899b95711.tar.xz |
-fix error handling
Diffstat (limited to 'src/lib/exchange_api_batch_withdraw.c')
-rw-r--r-- | src/lib/exchange_api_batch_withdraw.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/exchange_api_batch_withdraw.c b/src/lib/exchange_api_batch_withdraw.c index 8366ffda9..bc5abd539 100644 --- a/src/lib/exchange_api_batch_withdraw.c +++ b/src/lib/exchange_api_batch_withdraw.c @@ -304,6 +304,8 @@ withdraw_cs_stage_two_callback ( switch (csrr->hr.http_status) { case MHD_HTTP_OK: + GNUNET_assert (NULL == + cd->alg_values.blinding_inputs); TALER_denom_ewv_deep_copy (&cd->alg_values, &csrr->details.ok.alg_values); TALER_planchet_setup_coin_priv (&cd->ps, @@ -323,7 +325,12 @@ withdraw_cs_stage_two_callback ( &cd->pd)) { GNUNET_break (0); + wr.hr.http_status = 0; + wr.hr.ec = TALER_EC_GENERIC_CLIENT_INTERNAL_ERROR; + wh->cb (wh->cb_cls, + &wr); TALER_EXCHANGE_batch_withdraw_cancel (wh); + return; } wh->cs_pending--; if (0 == wh->cs_pending) |