exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 7f60da4971248971a8f4e33854c2a861d9e1e461
parent 8ce6d32f63a81e6ea61971859152e4a5ec3b7c40
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 20 Jan 2020 01:30:38 +0100

bugfixes

Diffstat:
Msrc/exchange-tools/taler-exchange-keyup.c | 2+-
Msrc/exchange/taler-exchange-httpd_keystate.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/exchange-tools/taler-exchange-keyup.c b/src/exchange-tools/taler-exchange-keyup.c @@ -1034,7 +1034,7 @@ create_wire_fee_for_method (void *cls, opt, &af->closing_fee)) || (0 != strcasecmp (currency, - af->wire_fee.currency)) ) + af->closing_fee.currency)) ) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Invalid or missing amount in `%s' under `%s'\n", diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c @@ -2240,9 +2240,9 @@ read_again: { GNUNET_assert (0 < os->refcnt); os->refcnt--; /* removed #internal_key_state reference */ + if (0 != os->refcnt) + os = NULL; /* other aliases are still active, do not yet free */ } - if (0 != os->refcnt) - os = NULL; /* other aliases are still active, do not yet free */ GNUNET_assert (0 == pthread_mutex_unlock (&internal_key_state_mutex)); if (NULL != os) ks_free (os); /* RC did hit zero, free */