diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-01 20:29:32 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-01 20:29:32 +0000 |
commit | 979b90001bdc88e438f4d0cd5cc32651b836e0b8 (patch) | |
tree | b8929e5c163f943c3d15c50550b8f6583beaad64 /src/or/dirserv.c | |
parent | c9c0d2846d03cfe69711f2d33281a939c0f478eb (diff) | |
download | tor-979b90001bdc88e438f4d0cd5cc32651b836e0b8.tar tor-979b90001bdc88e438f4d0cd5cc32651b836e0b8.tar.gz |
r12622@catbus: nickm | 2007-05-01 16:29:19 -0400
Look at the version in the routerinfo as well as the versino in the networkstatus when deciding whether to upload extrainfo
svn:r10088
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 40ed962d6..a79b83372 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1750,8 +1750,11 @@ generate_v2_networkstatus(void) outp += strlen(outp); if (ri->platform && !strcmpstart(ri->platform, "Tor ")) { const char *eos = find_whitespace(ri->platform+4); - if (eos && !strcmpstart(eos, " (r")) + if (eos && !strcmpstart(eos, " (r")) { + /* XXXX020 Unify this logic with the other version extraction + * logic */ eos = find_whitespace(eos+1); + } if (eos) { char *platform = tor_strndup(ri->platform, eos-(ri->platform)); if (tor_snprintf(outp, endp-outp, |