This commit is contained in:
Marcello Stanisci 2019-01-21 15:45:33 +01:00
parent 5f6236ec71
commit 038d32c768
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -711,6 +711,7 @@ update_auditors (struct TALER_EXCHANGE_Handle *exchange)
GNUNET_CONTAINER_DLL_insert (exchange->auditors_head, GNUNET_CONTAINER_DLL_insert (exchange->auditors_head,
exchange->auditors_tail, exchange->auditors_tail,
ale); ale);
ale->ah = TALER_AUDITOR_connect (exchange->ctx, ale->ah = TALER_AUDITOR_connect (exchange->ctx,
ale->auditor_url, ale->auditor_url,
&auditor_version_cb, &auditor_version_cb,
@ -719,7 +720,6 @@ update_auditors (struct TALER_EXCHANGE_Handle *exchange)
} }
/** /**
* Decode the JSON in @a resp_obj from the /keys response * Decode the JSON in @a resp_obj from the /keys response
* and store the data in the @a key_data. * and store the data in the @a key_data.
@ -1808,6 +1808,8 @@ TALER_EXCHANGE_disconnect (struct TALER_EXCHANGE_Handle *exchange)
GNUNET_CONTAINER_DLL_remove (exchange->auditors_head, GNUNET_CONTAINER_DLL_remove (exchange->auditors_head,
exchange->auditors_tail, exchange->auditors_tail,
ale); ale);
TALER_LOG_DEBUG ("Disconnecting the auditor `%s'\n",
ale->auditor_url);
TALER_AUDITOR_disconnect (ale->ah); TALER_AUDITOR_disconnect (ale->ah);
GNUNET_free (ale->auditor_url); GNUNET_free (ale->auditor_url);
GNUNET_free (ale); GNUNET_free (ale);