exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 64d38d55a8c3a0d0645dc0aeeee3fa692a294b50
parent 9c6ecb6e907482e926a78083225c772bfe2efb63
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 18 Nov 2026 17:23:09 +0100

fix #12188

Diffstat:
Msrc/exchange/taler-exchange-httpd_post-kyc-upload-ID.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_post-kyc-upload-ID.c b/src/exchange/taler-exchange-httpd_post-kyc-upload-ID.c @@ -514,6 +514,16 @@ TEH_handler_kyc_upload ( uc->result = root; rc->rh_ctx = uc; rc->rh_cleaner = &upload_cleaner; + if (NULL == id) + { + /* the route also matches /kyc-upload without an ID */ + GNUNET_break_op (0); + return TALER_MHD_reply_with_error ( + rc->connection, + MHD_HTTP_NOT_FOUND, + TALER_EC_GENERIC_ENDPOINT_UNKNOWN, + rc->url); + } slash = strchr (id, '-'); if (NULL == slash) {