commit db5b27048897329157cbec8fdf3ee2482cfca161
parent 4f45916f6cac32c57a55786da88bd0443a1f5be2
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Wed, 19 Mar 2025 01:45:34 +0100
fix #9631
Diffstat:
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-abort.c b/src/backend/taler-merchant-httpd_post-orders-ID-abort.c
@@ -893,10 +893,13 @@ parse_abort (struct MHD_Connection *connection,
if (0 == ac->coins_cnt)
{
GNUNET_break_op (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_COINS_ARRAY_EMPTY,
- "coins");
+ return (MHD_YES ==
+ TALER_MHD_reply_with_error (connection,
+ MHD_HTTP_BAD_REQUEST,
+ TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_COINS_ARRAY_EMPTY,
+ "coins"))
+ ? GNUNET_NO
+ : GNUNET_SYSERR;
}
/* note: 1 coin = 1 deposit confirmation expected */
ac->pending = ac->coins_cnt;