diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-21 13:48:49 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-21 13:48:49 +0200 |
commit | a5460cc84d5303d33bd087873a96462f93312f37 (patch) | |
tree | df60a8d16c0abe2f45e1d93f618eed61425472d7 /src/lib | |
parent | 8148c1e8af096bf41bf2eef0889df3a972c7c6db (diff) |
fix #6190
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/exchange_api_handle.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index 86edc0707..c3ae16633 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -1014,13 +1014,10 @@ decode_keys_json (const json_t *resp_obj, aix->num_denom_keys, ai.num_denom_keys); - GNUNET_array_grow (aix->denom_keys, - aix->num_denom_keys, - aix->num_denom_keys + ai.num_denom_keys); - memcpy (&aix->denom_keys[aix->num_denom_keys - ai.num_denom_keys], - ai.denom_keys, - ai.num_denom_keys * sizeof (struct - TALER_EXCHANGE_AuditorDenominationInfo)); + GNUNET_array_concatenate (aix->denom_keys, + aix->num_denom_keys, + ai.denom_keys, + ai.num_denom_keys); break; } } |