diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-03-04 10:31:17 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-03-04 10:31:17 -0500 |
commit | 699bb803baba942c6bcd50542183b283fa191163 (patch) | |
tree | 4d583a73056c8cbc3856d9f26502ee3bcec5cd16 /src/or/dirserv.c | |
parent | e5a990fc5a5440b48e49029e937c852fc45f246b (diff) | |
download | tor-699bb803baba942c6bcd50542183b283fa191163.tar.gz tor-699bb803baba942c6bcd50542183b283fa191163.zip |
Fix a crash bug when testing reachability
Fixes bug 25415; bugfix on 0.3.3.2-alpha.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 7ccce50bc5..7a693b9d43 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -3392,7 +3392,8 @@ dirserv_single_reachability_test(time_t now, routerinfo_t *router) tor_assert(node); if (options->AuthDirTestEd25519LinkKeys && - node_supports_ed25519_link_authentication(node, 1)) { + node_supports_ed25519_link_authentication(node, 1) && + router->cache_info.signing_key_cert) { ed_id_key = &router->cache_info.signing_key_cert->signing_key; } else { ed_id_key = NULL; |