commit c0b53c40c0af0255b83703d870e4dbceb3e9b069
parent e6ed1d19635548074b6f1675fda67d7c65a8f8c6
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 9 Jan 2024 11:19:51 +0100
check for excess characters
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/donau/donau-httpd_get-charity.c b/src/donau/donau-httpd_get-charity.c
@@ -43,9 +43,13 @@ DH_handler_charity_get (
const char *const args[])
{
unsigned long long charity_id;
+ char dummy;
if ( (NULL == args[0]) ||
- (1 != sscanf (args[0], "%llu", &charity_id)))
+ (1 != sscanf (args[0],
+ "%llu%c",
+ &charity_id,
+ &dummy)) )
{
GNUNET_break_op (0);
return TALER_MHD_reply_with_error (rc->connection,