[or-cvs] r9111: Clients no longer store bandwidth history in the state file. (in tor/branches/tor-0_1_1-patches: . src/or)
arma at seul.org
arma at seul.org
Fri Dec 15 00:10:17 UTC 2006
Author: arma
Date: 2006-12-14 19:10:16 -0500 (Thu, 14 Dec 2006)
New Revision: 9111
Modified:
tor/branches/tor-0_1_1-patches/ChangeLog
tor/branches/tor-0_1_1-patches/src/or/rephist.c
Log:
Clients no longer store bandwidth history in the state file.
(adapated from r9043)
Modified: tor/branches/tor-0_1_1-patches/ChangeLog
===================================================================
--- tor/branches/tor-0_1_1-patches/ChangeLog 2006-12-15 00:07:50 UTC (rev 9110)
+++ tor/branches/tor-0_1_1-patches/ChangeLog 2006-12-15 00:10:16 UTC (rev 9111)
@@ -2,6 +2,7 @@
o Security bugfixes:
- Stop sending the HttpProxyAuthenticator string to directory
servers when directory connections are tunnelled through Tor.
+ - Clients no longer store bandwidth history in the state file.
- Do not log introduction points for hidden services if SafeLogging
is set.
Modified: tor/branches/tor-0_1_1-patches/src/or/rephist.c
===================================================================
--- tor/branches/tor-0_1_1-patches/src/or/rephist.c 2006-12-15 00:07:50 UTC (rev 9110)
+++ tor/branches/tor-0_1_1-patches/src/or/rephist.c 2006-12-15 00:10:16 UTC (rev 9111)
@@ -597,6 +597,10 @@
char *cp = buf;
int i, n;
+ if (!server_mode(get_options())) {
+ return 0;
+ }
+
if (b->num_maxes_set <= b->next_max_idx) {
/* We haven't been through the circular array yet; time starts at i=0.*/
i = 0;
More information about the tor-commits
mailing list