add missing unlock (on error path that is usually fatal anyway)

This commit is contained in:
Christian Grothoff 2019-06-03 00:13:48 +02:00
parent 535a656625
commit f2ba3508b3
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1808,6 +1808,7 @@ TEH_KS_acquire_ (struct GNUNET_TIME_Absolute now,
/* bump RC by 1 if we released internal_key_state above */
if (NULL == internal_key_state)
{
GNUNET_assert (0 == pthread_mutex_unlock (&internal_key_state_mutex));
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to initialize key state\n");
return NULL;