commit 5b32c04efdb739126682b153e55593dd1036b5d4
parent 4ae478edebffe7ae1f6b2cb63dcdb7210525cf24
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 11 Oct 2026 14:15:53 +0200
do not alter zombie_required as side-effect
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_post-melt.c b/src/exchange/taler-exchange-httpd_post-melt.c
@@ -1622,6 +1622,7 @@ melt_transaction (
bool nonce_reuse;
uint32_t noreveal_index;
struct TALER_Amount insufficient_funds;
+ bool zombie_bad = mc->zombie_required;
(void) connection;
(void) mhd_ret;
@@ -1631,7 +1632,7 @@ melt_transaction (
&mc->now,
&found,
&noreveal_index,
- &mc->zombie_required,
+ &zombie_bad,
&nonce_reuse,
&balance_ok,
&insufficient_funds);
@@ -1677,7 +1678,7 @@ melt_transaction (
insufficient_funds);
return GNUNET_DB_STATUS_HARD_ERROR;
}
- if (mc->zombie_required)
+ if (zombie_bad)
{
GNUNET_break_op (0);
SET_ERROR (mc,