|
@@ -5197,6 +5197,10 @@ update_consensus_router_descriptor_downloads(time_t now, int is_vote,
|
|
log_warn(LD_BUG, "Failed to re-parse a router.");
|
|
log_warn(LD_BUG, "Failed to re-parse a router.");
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ char time_cert_expires[ISO_TIME_LEN+1];
|
|
|
|
+ format_iso_time(time_cert_expires, ri->cert_expiration_time);
|
|
|
|
+
|
|
r = router_add_to_routerlist(ri, &msg, 1, 0);
|
|
r = router_add_to_routerlist(ri, &msg, 1, 0);
|
|
if (WRA_WAS_OUTDATED(r)) {
|
|
if (WRA_WAS_OUTDATED(r)) {
|
|
log_warn(LD_DIR, "Couldn't add re-parsed router: %s. This isn't "
|
|
log_warn(LD_DIR, "Couldn't add re-parsed router: %s. This isn't "
|
|
@@ -5205,12 +5209,10 @@ update_consensus_router_descriptor_downloads(time_t now, int is_vote,
|
|
msg?msg:"???");
|
|
msg?msg:"???");
|
|
if (r == ROUTER_CERTS_EXPIRED) {
|
|
if (r == ROUTER_CERTS_EXPIRED) {
|
|
char time_cons[ISO_TIME_LEN+1];
|
|
char time_cons[ISO_TIME_LEN+1];
|
|
- char time_cert[ISO_TIME_LEN+1];
|
|
|
|
format_iso_time(time_cons, consensus->valid_after);
|
|
format_iso_time(time_cons, consensus->valid_after);
|
|
- format_iso_time(time_cert, ri->cert_expiration_time);
|
|
|
|
log_warn(LD_DIR, " (I'm looking at a consensus from %s; This "
|
|
log_warn(LD_DIR, " (I'm looking at a consensus from %s; This "
|
|
"router's certificates began expiring at %s.)",
|
|
"router's certificates began expiring at %s.)",
|
|
- time_cons, time_cert);
|
|
+ time_cons, time_cert_expires);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} SMARTLIST_FOREACH_END(sd);
|
|
} SMARTLIST_FOREACH_END(sd);
|