]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Allow two ISO times to appear in EntryGuardDownSince.
authorNick Mathewson <nickm@torproject.org>
Fri, 9 Jan 2015 13:50:56 +0000 (08:50 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 9 Jan 2015 13:50:56 +0000 (08:50 -0500)
When I made time parsing more strict, I broke the
EntryGuardDownSince line, which relied on two concatenated ISO times
being parsed as a single time.

Fixes bug 14136. Bugfix on 7984fc153112baa5. Bug not in any released
version of Tor.

src/or/entrynodes.c

index 9eb0efd67026983dfd5366866f9130ae8f49b069..968a9939996e76392939315ea2af626e506b0416 100644 (file)
@@ -1319,7 +1319,7 @@ entry_guards_parse_state(or_state_t *state, int set, char **msg)
                "EntryGuardDownSince/UnlistedSince without EntryGuard");
         break;
       }
-      if (parse_iso_time(line->value, &when)<0) {
+      if (parse_iso_time_(line->value, &when, 0)<0) {
         *msg = tor_strdup("Unable to parse entry nodes: "
                           "Bad time in EntryGuardDownSince/UnlistedSince");
         break;