summaryrefslogtreecommitdiff
path: root/src/or/routerkeys.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-06-01 09:42:32 -0400
committerNick Mathewson <nickm@torproject.org>2017-06-01 09:42:32 -0400
commitf2068ef8626302f7dce44bf206c4e83d4af7abba (patch)
treea4eba6ce64931b5e2638497c4f96de39039ab72b /src/or/routerkeys.c
parent5b33d95a3dfe943625d78983bb53be2901a51150 (diff)
downloadtor-f2068ef8626302f7dce44bf206c4e83d4af7abba.tar.gz
tor-f2068ef8626302f7dce44bf206c4e83d4af7abba.zip
Use tor_assert_nonfatal() to try to detect #22466
Diffstat (limited to 'src/or/routerkeys.c')
-rw-r--r--src/or/routerkeys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/routerkeys.c b/src/or/routerkeys.c
index 6259e3f5a0..e2053efeaf 100644
--- a/src/or/routerkeys.c
+++ b/src/or/routerkeys.c
@@ -685,6 +685,10 @@ load_ed_keys(const or_options_t *options, time_t now)
tor_cert_t *sign_cert = NULL;
tor_cert_t *auth_cert = NULL;
+ // It is later than 1972, since otherwise there would be no C compilers.
+ // (Try to diagnose #22466.)
+ tor_assert_nonfatal(now >= 2 * 365 * 86400);
+
#define FAIL(msg) do { \
log_warn(LD_OR, (msg)); \
goto err; \