commit 2449ec004f0bde70e24fe4ddd160a92830d223d9
parent 330cd29065b6fd5cdc8152d992993767e6050807
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 17 May 2026 22:07:58 +0200
do not assert, check for 400
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/backend/taler-merchant-httpd_post-templates-TEMPLATE_ID.c b/src/backend/taler-merchant-httpd_post-templates-TEMPLATE_ID.c
@@ -519,7 +519,15 @@ parse_using_templates_paivana_request (
}
dash = strchr (uc->parse_request.paivana.paivana_id,
'-');
- GNUNET_assert (NULL != dash);
+ if (NULL == dash)
+ {
+ GNUNET_break_op (0);
+ use_reply_with_error (uc,
+ MHD_HTTP_BAD_REQUEST,
+ TALER_EC_GENERIC_PARAMETER_MALFORMED,
+ "paivana_id");
+ return GNUNET_SYSERR;
+ }
{
size_t olen;
void *out = NULL;