diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-14 14:57:32 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-30 14:42:52 -0500 |
commit | 539eba0a4bab1e22a7e2e19132d356e99c32e232 (patch) | |
tree | 8cb80377dfdb33b7cb1fed231cf5b44c96851843 /src/or/routerparse.c | |
parent | df8256a931099767d9f70997c9eb1ef934afd392 (diff) | |
download | tor-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.c | 3 |
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; } |