commit c663b879320216d93db9f21ff76257e724b2291d
parent 6ebf85ec88c8875dc2ca712593fdb09b73be0a36
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 29 Jul 2026 18:27:34 +0200
cap storage_duration at ANASTASIS_MAX_YEARS_STORAGE in policy upload
Diffstat:
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/backend/anastasis-httpd_policy-upload.c b/src/backend/anastasis-httpd_policy-upload.c
@@ -852,10 +852,11 @@ AH_handler_policy_post (
if (years > ANASTASIS_MAX_YEARS_STORAGE)
{
GNUNET_break_op (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_GENERIC_PARAMETER_MALFORMED,
- "storage_duration");
+ return TALER_MHD_reply_with_error (
+ connection,
+ MHD_HTTP_BAD_REQUEST,
+ TALER_EC_GENERIC_PARAMETER_MALFORMED,
+ "storage_duration (exceeds maximum storage duration)");
}
}
else
@@ -910,7 +911,8 @@ AH_handler_policy_post (
if (0 == puc->years_to_pay)
puc->years_to_pay = 1;
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Too many uploads with this payment identifier, initiating fresh payment\n");
+ "Too many uploads with this payment identifier, initiating fresh payment\n")
+ ;
}
else
{