[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: fix #8100
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: fix #8100 |
Date: |
Wed, 17 Jan 2024 19:34:18 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 3db8ffe5 fix #8100
3db8ffe5 is described below
commit 3db8ffe54274ee94cc6204463b6c425ba7bcebf7
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jan 17 19:34:15 2024 +0100
fix #8100
---
src/lib/exchange_api_common.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c
index 23963265..417fdf35 100644
--- a/src/lib/exchange_api_common.c
+++ b/src/lib/exchange_api_common.c
@@ -414,18 +414,22 @@ parse_restrictions (const json_t *jresta,
unsigned int *resta_len,
struct TALER_EXCHANGE_AccountRestriction **resta)
{
+ size_t alen;
+
if (! json_is_array (jresta))
{
GNUNET_break_op (0);
return GNUNET_SYSERR;
}
- *resta_len = json_array_size (jresta);
- if (0 == *resta_len)
+ alen = json_array_size (jresta);
+ if (0 == alen)
{
/* no restrictions, perfectly OK */
*resta = NULL;
return GNUNET_OK;
}
+ *resta_len = (unsigned int) alen;
+ GNUNET_assert (alen == *resta_len);
*resta = GNUNET_new_array (*resta_len,
struct TALER_EXCHANGE_AccountRestriction);
for (unsigned int i = 0; i<*resta_len; i++)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: fix #8100,
gnunet <=