summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-05-01 20:29:26 +0000
committerNick Mathewson <nickm@torproject.org>2007-05-01 20:29:26 +0000
commitc9c0d2846d03cfe69711f2d33281a939c0f478eb (patch)
treeba7cb91c52bdfe00d64f45eb44c11a0cc5f85d27
parent89ab267cfbf1994b6b82a7de107fde5337aa485a (diff)
downloadtor-c9c0d2846d03cfe69711f2d33281a939c0f478eb.tar.gz
tor-c9c0d2846d03cfe69711f2d33281a939c0f478eb.zip
r12621@catbus: nickm | 2007-05-01 16:22:56 -0400
Authority patch; backport candidate: include micro-versions in network status documents. svn:r10087
-rw-r--r--src/or/dirserv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index abe8f9596a..40ed962d62 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1750,6 +1750,8 @@ 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"))
+ eos = find_whitespace(eos+1);
if (eos) {
char *platform = tor_strndup(ri->platform, eos-(ri->platform));
if (tor_snprintf(outp, endp-outp,