gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] 04/04: try to fix mess for keystate locking


From: gnunet
Subject: [taler-exchange] 04/04: try to fix mess for keystate locking
Date: Sun, 19 Jan 2020 17:14:23 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit 9031f7340de800e5818a975ce3f7129f7258d1b9
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Jan 19 17:14:14 2020 +0100

    try to fix mess for keystate locking
---
 src/exchange/taler-exchange-httpd_keystate.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/exchange/taler-exchange-httpd_keystate.c 
b/src/exchange/taler-exchange-httpd_keystate.c
index 3216c6ce..f6306fc5 100644
--- a/src/exchange/taler-exchange-httpd_keystate.c
+++ b/src/exchange/taler-exchange-httpd_keystate.c
@@ -2291,6 +2291,7 @@ TEH_KS_init (void)
   if (NULL == internal_key_state)
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                 "Failed to setup initial key state. This exchange cannot 
work.\n");
+  internal_key_state->refcnt = 1;
 }
 
 
@@ -2307,7 +2308,7 @@ TEH_KS_free ()
   ks = internal_key_state;
   if (NULL == ks)
     return;
-  GNUNET_assert (0 < ks->refcnt);
+  GNUNET_assert (1 == ks->refcnt);
   ks->refcnt--;
   ks_free (ks);
 }

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]