diff options
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r-- | src/or/hibernate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c index 2407fad6cf..6719a88578 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -291,6 +291,13 @@ accounting_set_wakeup_time(void) int n_days_to_exhaust_bw; int n_days_to_consider; + if (! identity_key_is_set()) { + if (init_keys() < 0) { + log_fn(LOG_ERR, "Error initializing keys"); + tor_assert(0); + } + } + format_iso_time(buf, interval_start_time); crypto_pk_get_digest(get_identity_key(), digest); |