exchange

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

commit d790ce87cd79a8ca3db864a66e06667106188634
parent 0a79ec9c5f0fdce0efd272b005a5d88fa8c390cc
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Fri, 14 Aug 2026 22:34:56 +0200

do not crash on DB inconsitency

Diffstat:
Msrc/auditordb/get_auditor_progress.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/auditordb/get_auditor_progress.c b/src/auditordb/get_auditor_progress.c @@ -73,7 +73,12 @@ auditor_progress_cb (void *cls, { struct AuditorProgressContext *ctx = cls; - GNUNET_assert (num_results == ctx->len); + if (num_results > ctx->len) + { + GNUNET_break (0); + ctx->failure = true; + return; + } for (unsigned int i = 0; i < num_results; i++) { bool is_missing = false;