aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-11-22 21:57:55 +0100
committerChristian Grothoff <christian@grothoff.org>2023-11-22 21:58:02 +0100
commit637ce389c90f590355e571d92bd09e2bdd8c6fb8 (patch)
treee3d80dd7b476242f278dcb2f773a6b1253425ece
parent3de167772f5d055e105bfd0507bd93e64c3a5042 (diff)
-tiny concurrency fix
-rw-r--r--src/util/taler-exchange-secmod-eddsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c
index 3b78e71df..f7a9702e6 100644
--- a/src/util/taler-exchange-secmod-eddsa.c
+++ b/src/util/taler-exchange-secmod-eddsa.c
@@ -584,11 +584,11 @@ eddsa_client_init (struct TES_Client *client)
static enum GNUNET_GenericReturnValue
eddsa_update_client_keys (struct TES_Client *client)
{
+ GNUNET_assert (0 == pthread_mutex_lock (&keys_lock));
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Updating client %p to generation %llu\n",
client,
(unsigned long long) key_gen);
- GNUNET_assert (0 == pthread_mutex_lock (&keys_lock));
for (struct Key *key = keys_head;
NULL != key;
key = key->next)