From cf539c03c63043c349415fa1e62232ef81b6de7e Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 8 Jan 2019 18:55:01 +0100 Subject: [PATCH] Fix segfault. --- src/exchange-lib/exchange_api_handle.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/exchange-lib/exchange_api_handle.c b/src/exchange-lib/exchange_api_handle.c index 6b2e30030..174dc2b47 100644 --- a/src/exchange-lib/exchange_api_handle.c +++ b/src/exchange-lib/exchange_api_handle.c @@ -773,6 +773,7 @@ free_key_data (struct TALER_EXCHANGE_Keys *key_data) 0); for (unsigned int i=0;inum_denom_keys;i++) GNUNET_CRYPTO_rsa_public_key_free (key_data->denom_keys[i].key.rsa_public_key); + GNUNET_array_grow (key_data->denom_keys, key_data->denom_keys_size, 0); @@ -909,6 +910,7 @@ keys_completed_cb (void *cls, &kd, &vc)) { + TALER_LOG_ERROR ("Could not decode /keys response\n"); response_code = 0; for (unsigned int i=0;ikey_data_raw);