commit 637ce389c90f590355e571d92bd09e2bdd8c6fb8
parent 3de167772f5d055e105bfd0507bd93e64c3a5042
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 22 Nov 2023 21:57:55 +0100
-tiny concurrency fix
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)