commit e68292c2dfa3a8d2f473136cb8e91daf5ce1b7dc
parent 1c32abf0af36e1db97f7cc5bdd4096425e81a647
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 1 May 2025 00:01:48 +0200
fix error in error handling without error code
Diffstat:
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_withdraw.c b/src/exchange/taler-exchange-httpd_withdraw.c
@@ -1305,11 +1305,14 @@ phase_generate_reply_error (
switch (wc->error.code)
{
case WITHDRAW_ERROR_NONE:
- {
- GNUNET_break (0);
- wc->phase = WITHDRAW_PHASE_RETURN_YES;
- return;
- }
+ GNUNET_break (0);
+ finish_loop (wc,
+ TALER_MHD_reply_with_error (
+ wc->rc->connection,
+ MHD_HTTP_INTERNAL_SERVER_ERROR,
+ TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
+ "error phase without error"));
+ break;
case WITHDRAW_ERROR_REQUEST_PARAMETER_MALFORMED:
finish_loop (wc,