commit a2be9458fcae890f3b05804e70b8aba7383abdfa parent 4e847a7ff3cb3b3636437a4aa50f1d26cb357d96 Author: Christian Grothoff <christian@grothoff.org> Date: Wed, 18 Nov 2026 17:58:56 +0100 fix #12216 Diffstat:
| M | src/exchangedb/do_import_credits.c | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/exchangedb/do_import_credits.c b/src/exchangedb/do_import_credits.c @@ -99,11 +99,12 @@ helper_cb (void *cls, { struct Context *ctx = cls; - if (num_results > ctx->length) + if (num_results != ctx->length) { /* The procedure returns one row per reserve transfer we passed in; a - different count means the two have drifted apart, and writing past the - caller's array is not the way to find that out. */ + different count means the two have drifted apart. More rows would + write past the caller's array, fewer would leave entries of it + unset. */ GNUNET_break (0); ctx->status = GNUNET_SYSERR; return;