diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-19 23:31:24 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-19 23:31:24 +0200 |
commit | 4ece9c192cebed7a3cf195f377a8e86da1f726e3 (patch) | |
tree | 47b342d394948f131f47b69ee6fa1f53f6bf860f /src | |
parent | 1db6ae0671a06bb5982a532d81b68493b882cb4a (diff) |
fix NPE
Diffstat (limited to 'src')
-rw-r--r-- | src/mint/taler-mint-httpd_keystate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mint/taler-mint-httpd_keystate.c b/src/mint/taler-mint-httpd_keystate.c index 6da2ebbee..8901f33d5 100644 --- a/src/mint/taler-mint-httpd_keystate.c +++ b/src/mint/taler-mint-httpd_keystate.c @@ -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; |