[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r9111: Clients no longer store bandwidth history in the state file. (in tor/branches/tor-0_1_1-patches: . src/or)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r9111: Clients no longer store bandwidth history in the state file. (in tor/branches/tor-0_1_1-patches: . src/or)
- From: arma@xxxxxxxx
- Date: Thu, 14 Dec 2006 19:10:17 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Thu, 14 Dec 2006 19:10:25 -0500
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
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;