summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-11-14 14:57:32 -0500
committerNick Mathewson <nickm@torproject.org>2016-11-30 14:42:52 -0500
commit539eba0a4bab1e22a7e2e19132d356e99c32e232 (patch)
tree8cb80377dfdb33b7cb1fed231cf5b44c96851843 /src/or/routerparse.c
parentdf8256a931099767d9f70997c9eb1ef934afd392 (diff)
downloadtor-539eba0a4bab1e22a7e2e19132d356e99c32e232.tar.gz
tor-539eba0a4bab1e22a7e2e19132d356e99c32e232.zip
Teach parse_iso_time about the spaceless variant.
(We previously added support for generating the spaceless 2016-11-14T19:58:12 variant, but not for actually parsing it.)
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 2cfd3fc58a..60fdce0b64 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -5150,7 +5150,8 @@ rend_parse_v2_service_descriptor(rend_service_descriptor_t **parsed_out,
* descriptor. */
tok = find_by_keyword(tokens, R_PUBLICATION_TIME);
tor_assert(tok->n_args == 1);
- if (parse_iso_time_(tok->args[0], &result->timestamp, strict_time_fmt) < 0) {
+ if (parse_iso_time_(tok->args[0], &result->timestamp,
+ strict_time_fmt, 0) < 0) {
log_warn(LD_REND, "Invalid publication time: '%s'", tok->args[0]);
goto err;
}