aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-08-08 18:56:27 +0300
committerrl1987 <rl1987@sdf.lonestar.org>2018-08-08 18:56:27 +0300
commit7a1007861f978abe0703a8fe062ed3c983bccd49 (patch)
tree8f2344e2627bd98a61333e71d286f4e14aadb8c8 /src/feature/relay
parent9c242e950b45ac67b2b741bc4e0c920a9a57cb43 (diff)
downloadtor-7a1007861f978abe0703a8fe062ed3c983bccd49.tar.gz
tor-7a1007861f978abe0703a8fe062ed3c983bccd49.zip
Print stacktrace when crypto_pk_get_digest() fails in router_build_fresh_descriptor()
Diffstat (limited to 'src/feature/relay')
-rw-r--r--src/feature/relay/router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c
index 40839f2605..e4ec01af24 100644
--- a/src/feature/relay/router.c
+++ b/src/feature/relay/router.c
@@ -2350,8 +2350,8 @@ router_build_fresh_descriptor(routerinfo_t **r, extrainfo_t **e)
}
ri->identity_pkey = crypto_pk_dup_key(get_server_identity_key());
- if (crypto_pk_get_digest(ri->identity_pkey,
- ri->cache_info.identity_digest)<0) {
+ if (BUG(crypto_pk_get_digest(ri->identity_pkey,
+ ri->cache_info.identity_digest) < 0)) {
routerinfo_free(ri);
return TOR_ROUTERINFO_ERROR_DIGEST_FAILED;
}