aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-20 01:30:38 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-20 01:30:38 +0100
commit7f60da4971248971a8f4e33854c2a861d9e1e461 (patch)
tree2a2065167c681656756c2daf64202872a292cc6a
parent8ce6d32f63a81e6ea61971859152e4a5ec3b7c40 (diff)
bugfixes
-rw-r--r--src/exchange-tools/taler-exchange-keyup.c2
-rw-r--r--src/exchange/taler-exchange-httpd_keystate.c4
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
index a235d46fe..266c1bac0 100644
--- 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
index f6306fc5d..6554d3f27 100644
--- 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 */