merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 2575ba69741dd59698f05da69e243a6b4667761c
parent ef280ada7398b602ccee733bc4ca0073fc4105cd
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Wed, 19 Mar 2025 01:41:39 +0100

fix #9638

Diffstat:
Msrc/backend/taler-merchant-httpd_private-get-transfers.c | 13++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_private-get-transfers.c b/src/backend/taler-merchant-httpd_private-get-transfers.c @@ -129,10 +129,14 @@ TMH_private_get_transfers (const struct TMH_RequestHandler *rh, (GNUNET_OK != GNUNET_STRINGS_fancy_time_to_timestamp (before_s, &before)) ) + { + GNUNET_break_op (0); + GNUNET_free (payto_uri.full_payto); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, TALER_EC_GENERIC_PARAMETER_MALFORMED, "before"); + } } { const char *after_s; @@ -144,10 +148,14 @@ TMH_private_get_transfers (const struct TMH_RequestHandler *rh, (GNUNET_OK != GNUNET_STRINGS_fancy_time_to_timestamp (after_s, &after)) ) + { + GNUNET_break_op (0); + GNUNET_free (payto_uri.full_payto); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, TALER_EC_GENERIC_PARAMETER_MALFORMED, "after"); + } } TALER_MHD_parse_request_snumber (connection, "limit", @@ -163,11 +171,14 @@ TMH_private_get_transfers (const struct TMH_RequestHandler *rh, "verified", TALER_EXCHANGE_YNA_ALL, &verified)) ) + { + GNUNET_break_op (0); + GNUNET_free (payto_uri.full_payto); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, TALER_EC_GENERIC_PARAMETER_MALFORMED, "verified"); - + } TMH_db->preflight (TMH_db->cls); { json_t *ja;