r12621@catbus: nickm | 2007-05-01 16:22:56 -0400

Authority patch; backport candidate: include micro-versions in network status documents.


svn:r10087
This commit is contained in:
Nick Mathewson 2007-05-01 20:29:26 +00:00
parent 89ab267cfb
commit c9c0d2846d

View File

@ -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,