merchant

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

commit 63d615a5b0ed5041e7f2e810e9996268c6222db5
parent e714cc319eb3f5cbdce5fb26c6ad14093731a510
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 29 Oct 2026 19:47:39 +0100

add missing input validation

Diffstat:
Msrc/backend/taler-merchant-httpd_patch-private-reports-REPORT_ID.c | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_patch-private-reports-REPORT_ID.c b/src/backend/taler-merchant-httpd_patch-private-reports-REPORT_ID.c @@ -96,6 +96,27 @@ TMH_private_patch_report (const struct TMH_RequestHandler *rh, : MHD_NO; } } + { + char *section; + + GNUNET_asprintf (&section, + "report-generator-%s", + program_section); + if (GNUNET_YES != + GNUNET_CONFIGURATION_have_value (TMH_cfg, + section, + "BINARY")) + { + GNUNET_free (section); + GNUNET_break (0); + return TALER_MHD_reply_with_error ( + connection, + MHD_HTTP_NOT_IMPLEMENTED, + TALER_EC_MERCHANT_GENERIC_REPORT_GENERATOR_UNCONFIGURED, + program_section); + } + GNUNET_free (section); + } if ('/' != data_source[0]) { GNUNET_break_op (0);