diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-06-18 16:41:36 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-06-18 16:41:36 +0200 |
commit | 044403701dadd296775215ac85e4bfe0000ebc6c (patch) | |
tree | c7daf9a7415a37da23ff9755a8d118a10d17c552 /src/mint/taler-mint-httpd_keystate.c | |
parent | 37bf816873ac6b8b4e2e69e9c7037046d971dfff (diff) | |
download | exchange-044403701dadd296775215ac85e4bfe0000ebc6c.tar.xz |
fix range check, fix NULL check, fix plugin linkage
Diffstat (limited to 'src/mint/taler-mint-httpd_keystate.c')
-rw-r--r-- | src/mint/taler-mint-httpd_keystate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mint/taler-mint-httpd_keystate.c b/src/mint/taler-mint-httpd_keystate.c index fc0e1413d..56d6feb42 100644 --- a/src/mint/taler-mint-httpd_keystate.c +++ b/src/mint/taler-mint-httpd_keystate.c @@ -211,7 +211,7 @@ reload_keys_denom_iter (void *cls, int res; horizon = GNUNET_TIME_relative_to_absolute (TALER_MINT_conf_duration_provide ()); - if (GNUNET_TIME_absolute_ntoh (dki->issue.expire_spend).abs_value_us > + if (GNUNET_TIME_absolute_ntoh (dki->issue.start).abs_value_us > horizon.abs_value_us) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, @@ -235,7 +235,9 @@ reload_keys_denom_iter (void *cls, &denom_key_hash, sizeof (struct GNUNET_HashCode)); session = TMH_plugin->get_session (TMH_plugin->cls, - GNUNET_NO); + TMH_test_mode); + if (NULL == session) + return GNUNET_SYSERR; /* Try to insert DKI into DB until we succeed; note that if the DB failure is persistent, this code may loop forever (as there is no sane alternative, we cannot continue without the DKI being in the |