aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-07-16 12:45:14 +0200
committerChristian Grothoff <christian@grothoff.org>2024-07-29 12:18:45 +0200
commit803f82de2bdc3d2750443bad067ded1c1dce3a25 (patch)
tree7f0224cd5309412ae39da0e8e80182c341d7a1a8 /src/exchangedb
parentea83a6cbf9fef8d634c0935465a9df5e7de684a0 (diff)
add account_sig for authorization
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/pg_add_policy_fulfillment_proof.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchangedb/pg_add_policy_fulfillment_proof.c b/src/exchangedb/pg_add_policy_fulfillment_proof.c
index 93d070712..c23845daf 100644
--- a/src/exchangedb/pg_add_policy_fulfillment_proof.c
+++ b/src/exchangedb/pg_add_policy_fulfillment_proof.c
@@ -56,11 +56,11 @@ TEH_PG_add_policy_fulfillment_proof (
struct PostgresClosure *pg = cls;
size_t count = fulfillment->details_count;
/* FIXME: this seems to be prone to VLA attacks */
- struct GNUNET_HashCode hcs[count];
+ struct GNUNET_HashCode hcs[GNUNET_NZL (count)];
/* Create the sorted policy_hash_codes */
{
- size_t idx[count];
+ size_t idx[GNUNET_NZL (count)];
for (size_t i = 0; i < count; i++)
idx[i] = i;