commit 187acf135052b92fa2b1bf116b3957f1fe9d0090
parent edfcb95d4d90aa34d3ec0e2bc77a87b37375b71c
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sun, 16 Aug 2026 22:18:07 +0200
stop iteration when indicated by callback
Diffstat:
1 file changed, 16 insertions(+), 10 deletions(-)
diff --git a/src/exchangedb/iterate_all_kyc_attributes.c b/src/exchangedb/iterate_all_kyc_attributes.c
@@ -103,16 +103,22 @@ get_attributes_cb (void *cls,
ctx->status = GNUNET_SYSERR;
return;
}
- ctx->cb (ctx->cb_cls,
- rowid,
- &h_payto,
- provider,
- collection_time,
- expiration_time,
- properties,
- enc_attributes_size,
- enc_attributes);
- GNUNET_PQ_cleanup_result (rs);
+ {
+ bool cont;
+
+ cont = ctx->cb (ctx->cb_cls,
+ rowid,
+ &h_payto,
+ provider,
+ collection_time,
+ expiration_time,
+ properties,
+ enc_attributes_size,
+ enc_attributes);
+ GNUNET_PQ_cleanup_result (rs);
+ if (! cont)
+ return;
+ }
}
}