This commit is contained in:
Christian Grothoff 2015-04-19 23:31:24 +02:00
parent 1db6ae0671
commit 4ece9c192c

View File

@ -399,7 +399,8 @@ TMH_KS_acquire (void)
struct TALER_MintSignatureP sig;
GNUNET_assert (0 == pthread_mutex_lock (&internal_key_state_mutex));
if (internal_key_state->next_reload.abs_value_us <= now.abs_value_us)
if ( (NULL != internal_key_state) &&
(internal_key_state->next_reload.abs_value_us <= now.abs_value_us) )
{
TMH_KS_release (internal_key_state);
internal_key_state = NULL;