summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/connection_edge.c1
-rw-r--r--src/or/dirserv.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index dd218f5dd4..8335a42a0d 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1986,6 +1986,7 @@ connection_ap_make_link(char *address, uint16_t port,
if (use_begindir) {
conn->chosen_exit_name = tor_malloc(HEX_DIGEST_LEN+2);
conn->chosen_exit_name[0] = '$';
+ tor_assert(digest);
base16_encode(conn->chosen_exit_name+1,HEX_DIGEST_LEN+1,
digest, DIGEST_LEN);
}
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index e4299fba92..03a0c2791b 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1727,7 +1727,7 @@ dirserv_compute_performance_thresholds(routerlist_t *rl)
log(LOG_INFO, LD_DIRSERV,
"Cutoffs: For Stable, %lu sec uptime, %lu sec MTBF. "
- "For Fast: %lu bytes/sec."
+ "For Fast: %lu bytes/sec. "
"For Guard: WFU %.03lf%%, time-known %lu sec, "
"and bandwidth %lu or %lu bytes/sec.",
(unsigned long)stable_uptime,