aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirparse
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-05-16 08:51:00 -0400
committerDavid Goulet <dgoulet@torproject.org>2022-05-16 08:51:00 -0400
commit4f038d224f5a3df5fb396eff0173bba0eec89127 (patch)
treef83d971042e41cd9a1e9b9d053fb7522f27d828c /src/feature/dirparse
parentbae04e6a988dfb5deea86bb848b1649d3b3c3551 (diff)
parent96f1e69f24ec5c056964b44cb8538004649c504d (diff)
downloadtor-4f038d224f5a3df5fb396eff0173bba0eec89127.tar.gz
tor-4f038d224f5a3df5fb396eff0173bba0eec89127.zip
Merge branch 'tor-gitlab/mr/489'
Diffstat (limited to 'src/feature/dirparse')
-rw-r--r--src/feature/dirparse/ns_parse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/feature/dirparse/ns_parse.c b/src/feature/dirparse/ns_parse.c
index cd3e2731be..3e1f9a3bd3 100644
--- a/src/feature/dirparse/ns_parse.c
+++ b/src/feature/dirparse/ns_parse.c
@@ -371,14 +371,17 @@ routerstatus_parse_entry_from_string(memarea_t *area,
}
}
+ time_t published_on;
if (tor_snprintf(timebuf, sizeof(timebuf), "%s %s",
tok->args[3+offset], tok->args[4+offset]) < 0 ||
- parse_iso_time(timebuf, &rs->published_on)<0) {
+ parse_iso_time(timebuf, &published_on)<0) {
log_warn(LD_DIR, "Error parsing time '%s %s' [%d %d]",
tok->args[3+offset], tok->args[4+offset],
offset, (int)flav);
goto err;
}
+ if (vote_rs)
+ vote_rs->published_on = published_on;
if (tor_inet_aton(tok->args[5+offset], &in) == 0) {
log_warn(LD_DIR, "Error parsing router address in network-status %s",